mirror of
https://gitlab.com/asus-linux/asusctl.git
synced 2026-01-22 09:23:19 +01:00
Small error message fix
This commit is contained in:
@@ -32,7 +32,10 @@ static ICONS: OnceLock<Icons> = OnceLock::new();
|
||||
fn read_icon(file: &Path) -> Icon {
|
||||
let mut path = PathBuf::from(TRAY_ICON_PATH);
|
||||
path.push(file);
|
||||
let mut file = OpenOptions::new().read(true).open(path).unwrap();
|
||||
let mut file = OpenOptions::new()
|
||||
.read(true)
|
||||
.open(&path)
|
||||
.unwrap_or_else(|_| panic!("Missing icon: {:?}", path));
|
||||
let mut bytes = Vec::new();
|
||||
file.read_to_end(&mut bytes).unwrap();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user