Prep new version

This commit is contained in:
Luke
2020-07-01 11:08:19 +12:00
parent cff0af76c8
commit efe88aa675
8 changed files with 19 additions and 10 deletions

View File

@@ -66,7 +66,7 @@ fn get_keyboard_backlight_modes(config: Arc<Mutex<Config>>) -> Method<MTSync, ()
if let Ok(lock) = config.try_lock() {
let mode = serde_json::to_string(&lock.builtin_modes).unwrap();
let mret = m.msg.method_return().append1(mode);
return Ok(vec![mret]);
Ok(vec![mret])
} else {
Err(MethodErr::failed("Could not lock config for access"))
}