mirror of
				https://github.com/lelgenio/maildir-notify-daemon.git
				synced 2025-11-04 00:07:36 -03:00 
			
		
		
		
	fix args
This commit is contained in:
		
							parent
							
								
									cbe3ac5bdf
								
							
						
					
					
						commit
						e4d7cbee89
					
				
					 1 changed files with 2 additions and 2 deletions
				
			
		| 
						 | 
					@ -15,9 +15,9 @@ fn main() {
 | 
				
			||||||
        Hotwatch::new_with_custom_delay(std::time::Duration::from_secs(0))
 | 
					        Hotwatch::new_with_custom_delay(std::time::Duration::from_secs(0))
 | 
				
			||||||
            .expect("hotwatch failed to initialize!");
 | 
					            .expect("hotwatch failed to initialize!");
 | 
				
			||||||
 | 
					
 | 
				
			||||||
    for arg in std::env::args() {
 | 
					    for arg in std::env::args().skip(1) {
 | 
				
			||||||
        if let Err(e) = hotwatch.watch(&arg, handle_event) {
 | 
					        if let Err(e) = hotwatch.watch(&arg, handle_event) {
 | 
				
			||||||
            eprintln!("Failed to watch arg {} with error: {}", &arg, e);
 | 
					            eprintln!("Failed to watch arg '{}': {}", &arg, e);
 | 
				
			||||||
        }
 | 
					        }
 | 
				
			||||||
    }
 | 
					    }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue