diff --git a/src/actions.rs b/src/actions.rs index cde387f..e4c8662 100644 --- a/src/actions.rs +++ b/src/actions.rs @@ -34,7 +34,7 @@ pub fn unpack, OP: AsRef>(source: IP, destination: OP) -> } pub fn set>( - path: &Option

, + path: Option<&P>, daemon: bool, user_appearance: Option, ) -> Result<()> { diff --git a/src/main.rs b/src/main.rs index 609db1f..c64386b 100644 --- a/src/main.rs +++ b/src/main.rs @@ -35,7 +35,7 @@ fn main() -> Result<()> { file, daemon, appearance, - } => actions::set(&file, daemon, appearance), + } => actions::set(file.as_ref(), daemon, appearance), cli::Action::Clear { all } => actions::clear(all), } } diff --git a/src/wallpaper/metadata.rs b/src/wallpaper/metadata.rs index 3d6fc1e..837d0f7 100644 --- a/src/wallpaper/metadata.rs +++ b/src/wallpaper/metadata.rs @@ -146,7 +146,7 @@ mod tests { let result = get_apple_desktop_metadata_from_xmp(xmp.as_bytes()); - assert!(result.is_err()) + assert!(result.is_err()); } #[test] @@ -155,7 +155,7 @@ mod tests { let result = get_apple_desktop_metadata_from_xmp(xmp.as_bytes()); - assert!(result.is_err()) + assert!(result.is_err()); } #[test] @@ -170,6 +170,6 @@ mod tests { let result = get_apple_desktop_metadata_from_xmp(xmp); - assert!(result.is_err()) + assert!(result.is_err()); } }