Skip to content

Commit

Permalink
style: Fix clippy lints
Browse files Browse the repository at this point in the history
  • Loading branch information
bcyran committed Dec 1, 2024
1 parent 90483e5 commit 049b0be
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion src/actions.rs
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ pub fn unpack<IP: AsRef<Path>, OP: AsRef<Path>>(source: IP, destination: OP) ->
}

pub fn set<P: AsRef<Path>>(
path: &Option<P>,
path: Option<&P>,
daemon: bool,
user_appearance: Option<Appearance>,
) -> Result<()> {
Expand Down
2 changes: 1 addition & 1 deletion src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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),
}
}
6 changes: 3 additions & 3 deletions src/wallpaper/metadata.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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]
Expand All @@ -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]
Expand All @@ -170,6 +170,6 @@ mod tests {

let result = get_apple_desktop_metadata_from_xmp(xmp);

assert!(result.is_err())
assert!(result.is_err());
}
}

0 comments on commit 049b0be

Please sign in to comment.