mirror of
				https://github.com/NotAShelf/microfetch.git
				synced 2025-11-04 07:32:20 +00:00 
			
		
		
		
	clippy lints
This commit is contained in:
		
					parent
					
						
							
								0e4b2d2ac1
							
						
					
				
			
			
				commit
				
					
						cff4332122
					
				
			
		
					 4 changed files with 7 additions and 20 deletions
				
			
		| 
						 | 
				
			
			@ -1,4 +1,4 @@
 | 
			
		|||
use color_eyre::{Result};
 | 
			
		||||
use color_eyre::Result;
 | 
			
		||||
use std::fs::{self, read_to_string};
 | 
			
		||||
use std::io::{self, Read};
 | 
			
		||||
 | 
			
		||||
| 
						 | 
				
			
			@ -49,8 +49,5 @@ pub fn get_os_pretty_name() -> Result<String, io::Error> {
 | 
			
		|||
                .to_string()
 | 
			
		||||
        });
 | 
			
		||||
 | 
			
		||||
    match pretty_name {
 | 
			
		||||
        Some(name) => Ok(name),
 | 
			
		||||
        None => Ok("Unknown".to_string()),
 | 
			
		||||
    }
 | 
			
		||||
    Ok(pretty_name.unwrap_or_else(|| "Unknown".to_string()))
 | 
			
		||||
}
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue