clippy lints

This commit is contained in:
raf 2024-08-04 00:07:11 +03:00
commit cff4332122
Signed by: NotAShelf
GPG key ID: AF26552424E53993
4 changed files with 7 additions and 20 deletions

View file

@ -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()))
}