SpriteOvO / spdlog-rs

Fast, highly configurable Rust logging crate
https://crates.io/crates/spdlog-rs
Apache License 2.0
107 stars 11 forks source link

[Bug Report] fails to build on Linux with latest nightly Rust #60

Closed ssh352 closed 7 months ago

ssh352 commented 7 months ago

Describe the bug

fails to build on Linux with latest nightly Rust, stable Rust is fine

To Reproduce

cargo build

Expected behavior

error: non-binding let on a synchronization lock
  --> spdlog/src/periodic_worker.rs:25:22
   |
25 |                 let (_, res) = active
   |                      ^ this lock is not assigned to a binding and is immediately dropped
   |
   = help: consider immediately dropping the value using `drop(..)` after the `let` statement
   = note: `#[deny(let_underscore_lock)]` on by default
help: consider binding to an unused variable to avoid immediately dropping the value
   |
25 |                 let (_unused, res) = active

Screenshots

Environments

Additional context

SpriteOvO commented 7 months ago

Thanks for your report, fixed in #61. I will publish a new patch version for it ASAP.

SpriteOvO commented 7 months ago

Released in v0.3.13, please run cargo update under your project to fetch the latest package.