mirror of
https://gitlab.com/asus-linux/asusctl.git
synced 2026-02-06 00:15:04 +01:00
Safely index modes
This commit is contained in:
@@ -37,8 +37,8 @@ impl Config {
|
||||
.unwrap_or_else(|_| panic!("Could not deserialise {}", CONFIG_PATH));
|
||||
self = c;
|
||||
} else {
|
||||
self =
|
||||
toml::from_str(&buf).expect(&format!("Could not deserialise {}", CONFIG_PATH));
|
||||
self = toml::from_str(&buf)
|
||||
.unwrap_or_else(|_| panic!("Could not deserialise {}", CONFIG_PATH));
|
||||
}
|
||||
}
|
||||
self
|
||||
|
||||
Reference in New Issue
Block a user