Fix some clippy issues
This commit is contained in:
		
							parent
							
								
									ab7090f2c5
								
							
						
					
					
						commit
						6f2deb38e1
					
				
					 4 changed files with 9 additions and 16 deletions
				
			
		| 
						 | 
				
			
			@ -104,14 +104,11 @@ pub fn get_weekday() -> Weekday {
 | 
			
		|||
pub fn printable_relay_states(relay_states: &RelayStates) -> String {
 | 
			
		||||
	let mut relay_debug = String::new();
 | 
			
		||||
	relay_states.iter().for_each(|state| {
 | 
			
		||||
		relay_debug.push_str(&format!(
 | 
			
		||||
			"{}",
 | 
			
		||||
			match state {
 | 
			
		||||
				Some(true) => "+",
 | 
			
		||||
				Some(false) => "-",
 | 
			
		||||
				None => "?",
 | 
			
		||||
			}
 | 
			
		||||
		));
 | 
			
		||||
		relay_debug.push_str(match state {
 | 
			
		||||
			Some(true) => "+",
 | 
			
		||||
			Some(false) => "-",
 | 
			
		||||
			None => "?",
 | 
			
		||||
		});
 | 
			
		||||
	});
 | 
			
		||||
	relay_debug
 | 
			
		||||
}
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue