Skip to content

Commit

Permalink
Fix macOS clippy warning
Browse files Browse the repository at this point in the history
  • Loading branch information
jorgenpt committed Aug 15, 2023
1 parent 43f01d5 commit e92ca25
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/macos.rs
Original file line number Diff line number Diff line change
Expand Up @@ -163,7 +163,7 @@ pub fn main() -> Result<()> {
Box::new(move |file| {
let file = fruitbasket::nsstring_to_string(file);
let url = Url::from_file_path(file).expect("Unable to convert file path to URL");
if let Err(error) = handle_url(&url.to_string()) {
if let Err(error) = handle_url(url.as_ref()) {
panic!("error handling file path: {}", error);
}
stopper.stop();
Expand Down

0 comments on commit e92ca25

Please sign in to comment.