rust-lang / log

Logging implementation for Rust
https://docs.rs/log
Apache License 2.0
2.16k stars 250 forks source link

Simplify Display impl #579

Closed nyurik closed 1 year ago

nyurik commented 1 year ago

For some reason, fmt::Display for Error uses an unusual form match &self.inner { &Value(ref err) => err.fmt(f), ...}. It seems Value(err) will work just as well.

If this is actually needed, we should add some comment explaining why so