cargo fmt + clippy
All checks were successful
Build and test / build (push) Successful in 1m58s
Build and test / check (push) Successful in 1m58s
Build and test / docs (push) Successful in 2m16s
Build and test / test (push) Successful in 3m27s

This commit is contained in:
2024-08-03 16:35:15 +02:00
parent 99e4622ef7
commit 6a0a275f64
4 changed files with 18 additions and 20 deletions

View File

@@ -29,7 +29,6 @@ async fn test_set_property() -> Result<(), MpvError> {
Ok(())
}
#[tokio::test]
#[cfg(target_family = "unix")]
async fn test_get_unavailable_property() -> Result<(), MpvError> {
@@ -48,10 +47,13 @@ async fn test_get_unavailable_property() -> Result<(), MpvError> {
async fn test_get_nonexistent_property() -> Result<(), MpvError> {
let (mut proc, mpv) = spawn_headless_mpv().await.unwrap();
let nonexistent = mpv.get_property::<f64>("nonexistent").await;
assert_eq!(nonexistent, Err(MpvError::MpvError("property not found".to_string())));
assert_eq!(
nonexistent,
Err(MpvError::MpvError("property not found".to_string()))
);
mpv.kill().await.unwrap();
proc.kill().await.unwrap();
Ok(())
}
}

View File

@@ -85,10 +85,7 @@ async fn test_get_unavailable_property() -> Result<(), MpvError> {
let mpv = Mpv::connect_socket(server).await?;
let maybe_volume = mpv.get_property::<f64>("volume").await;
assert_eq!(
maybe_volume,
Ok(None),
);
assert_eq!(maybe_volume, Ok(None),);
join_handle.await.unwrap().unwrap();