Skip to content

the trait ToValue is not implemented for std::string::String #6

@acim

Description

@acim

After upgrading log to 0.4.14, json_env_logger won't compile:

error[E0277]: the trait bound `std::string::String: ToValue` is not satisfied
  --> /home/acim/.cargo/registry/src/github.202132.xyz-1ecc6299db9ec823/json_env_logger-0.1.1/src/lib.rs:79:21
   |
79 | /                     kv_log_macro::error!(
80 | |                         "panicked at '{}'", msg,
81 | |                         {
82 | |                             thread: thread,
83 | |                             location: format!("{}:{}", location.file(), location.line())
84 | |                         }
85 | |                     );
   | |______________________^ the trait `ToValue` is not implemented for `std::string::String`
   |
   = note: required for the cast to the object type `dyn ToValue`
   = note: this error originates in a macro (in Nightly builds, run with -Z macro-backtrace for more info)

error: aborting due to previous error

For more information about this error, try `rustc --explain E0277`.
error: could not compile `json_env_logger`

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions