Skip to content

Commit

Permalink
Fix clippy::or_fun_call on automatically refactored code
Browse files Browse the repository at this point in the history
  • Loading branch information
MarijnS95 committed Nov 16, 2020
1 parent 30ce988 commit 562246d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -119,7 +119,7 @@ fn run_check(check_gir_file: &str) -> Result<(), String> {
.ok_or(format!("Failed to get file stem from `{}`", check_gir_file))?;
let lib_name = lib_name
.to_str()
.ok_or("failed to convert OsStr to str".to_owned())?;
.ok_or_else(|| "failed to convert OsStr to str".to_owned())?;
let mut library = Library::new(lib_name);
let parent = path.parent().ok_or(format!(
"Failed to get parent directory from `{}`",
Expand Down

0 comments on commit 562246d

Please sign in to comment.