mozilla / cubeb-rs

ISC License
61 stars 19 forks source link

New clippy issue in Nightly #64

Closed padenot closed 2 years ago

padenot commented 2 years ago
error: using `self` as `Display` in `impl Display` will cause infinite recursion
   --> cubeb-core/src/error.rs:104:9
    |
104 |         write!(f, "{}", self)
    |         ^^^^^^^^^^^^^^^^^^^^^
    |
    = note: `#[deny(clippy::recursive_format_impl)]` on by default
    = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#recursive_format_impl
    = note: this error originates in the macro `write` (in Nightly builds, run with -Z macro-backtrace for more info)
kinetiknz commented 2 years ago

Fixed in https://github.com/mozilla/cubeb-rs/commit/bd8a2c585047caf542019dc37eacdc38044c3a33