Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Missing LogWriter trait for FileLogWriter? #15

Open
TaaviE opened this issue Apr 3, 2024 · 0 comments
Open

Missing LogWriter trait for FileLogWriter? #15

TaaviE opened this issue Apr 3, 2024 · 0 comments

Comments

@TaaviE
Copy link

TaaviE commented Apr 3, 2024

After updating to latest flexi_logger 0.28.0 I started getting the following error:1

error[E0277]: the trait bound `CursiveLogWriter: LogWriter` is not satisfied
   --> src/bin/main.rs:180:13
    |
180 |             cursive_flexi_logger_view::cursive_flexi_logger(&cursive)
    |             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ the trait `LogWriter` is not implemented for `CursiveLogWriter`
    |
    = help: the trait `LogWriter` is implemented for `FileLogWriter`
    = note: required for the cast from `Box<CursiveLogWriter>` to `Box<(dyn LogWriter + 'static)>`

cargo tree output:

├── cursive-flexi-logger-view v0.5.0
...
│   ├── cursive_core v0.3.7 (*)
│   ├── flexi_logger v0.22.5

It seems that cursive-flexi-logger-view is pulling in flexi_logger that doesn't match the version I wish to use?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant