File tree Expand file tree Collapse file tree 2 files changed +5
-4
lines changed Expand file tree Collapse file tree 2 files changed +5
-4
lines changed Original file line number Diff line number Diff line change @@ -29,15 +29,15 @@ fn main() {
2929 . duration_since ( std:: time:: UNIX_EPOCH )
3030 . unwrap ( )
3131 . as_secs ( ) ;
32-
3332 println ! ( "Current Time: {}" , now) ;
3433
3534 // Listen to the Timer events
3635 std:: thread:: spawn ( move || {
36+ #[ allow( irrefutable_let_patterns) ]
3737 while let result = rx. recv ( ) {
3838 match result {
3939 Ok ( time) => println ! ( "Thread 1 Notification: {}" , time) ,
40- Err ( err ) => {
40+ Err ( _err ) => {
4141 println ! ( "Error Thread 1" ) ;
4242 break ;
4343 }
@@ -46,10 +46,11 @@ fn main() {
4646 } ) ;
4747
4848 std:: thread:: spawn ( move || {
49+ #[ allow( irrefutable_let_patterns) ]
4950 while let result = rx2. recv ( ) {
5051 match result {
5152 Ok ( time) => println ! ( "Thread 2 Notification: {}" , time) ,
52- Err ( err ) => {
53+ Err ( _err ) => {
5354 println ! ( "Error Thread 2" ) ;
5455 break ;
5556 }
Original file line number Diff line number Diff line change @@ -219,7 +219,7 @@ impl PyroscopeAgent {
219219 // Wait for the Thread to finish
220220 let pair = Arc :: clone ( & self . running ) ;
221221 let ( lock, cvar) = & * pair;
222- cvar. wait_while ( lock. lock ( ) ?, |running| * running) ?;
222+ let _guard = cvar. wait_while ( lock. lock ( ) ?, |running| * running) ?;
223223
224224 // Create a clone of Backend
225225 let backend = Arc :: clone ( & self . backend ) ;
You can’t perform that action at this time.
0 commit comments