File tree Expand file tree Collapse file tree 2 files changed +5
-5
lines changed Expand file tree Collapse file tree 2 files changed +5
-5
lines changed Original file line number Diff line number Diff line change 1
1
[package ]
2
2
name = " spdlog-rs"
3
- version = " 0.3.12 "
3
+ version = " 0.3.13 "
4
4
edition = " 2021"
5
5
rust-version = " 1.56"
6
6
description = " A fast and combinable Rust logging crate, inspired by the C++ logging library spdlog"
Original file line number Diff line number Diff line change @@ -21,13 +21,13 @@ impl PeriodicWorker {
21
21
Self {
22
22
active : active. clone ( ) ,
23
23
thread : Some ( thread:: spawn ( move || loop {
24
- let guard = active. 0 . lock_expect ( ) ;
25
- let ( _ , res) = active
24
+ let flag = active. 0 . lock_expect ( ) ;
25
+ let ( flag , res) = active
26
26
. 1
27
- . wait_timeout_while ( guard , interval, |active | * active )
27
+ . wait_timeout_while ( flag , interval, |flag | * flag )
28
28
. unwrap ( ) ;
29
29
30
- if !res. timed_out ( ) || !callback ( ) {
30
+ if !res. timed_out ( ) || !* flag || ! callback ( ) {
31
31
return ;
32
32
}
33
33
} ) ) ,
You can’t perform that action at this time.
0 commit comments