fixup: fmt + clippy

This commit is contained in:
2024-05-04 00:06:22 +02:00
parent f1687fe07b
commit e044246cba
14 changed files with 49 additions and 33 deletions

View File

@@ -167,7 +167,7 @@ where
value: T,
) -> Result<(), MpvError> {
let (res_tx, res_rx) = oneshot::channel();
let value = serde_json::to_value(value).map_err(|why| MpvError::JsonParseError(why))?;
let value = serde_json::to_value(value).map_err(MpvError::JsonParseError)?;
instance
.command_sender