deinstapel / deinstapel/cursive-flexi-logger-view

Missing LogWriter trait for FileLogWriter?

Open
#15 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
Rust
Stars
10
Forks
9
PR merge metrics
No merged PRs in 30d

Description

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` 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?

Contributor guide

No contributing guide indexed for this repository

Research direction

Start with src/bin/main.rs around line 180 and inspect the cargo tree entries for cursive-flexi-logger-view and flexi_logger. Check how the 0.22.5 and 0.28.0 versions interact with CursiveLogWriter and LogWriter; done means the reported dependency combination compiles without the missing-trait error.

Written by the indexing model from the issue text.

Assessment

Tech stack
rust
Domain
tooling
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
30/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.