Skip to content

Commit

Permalink
chore: fix clippy lints
Browse files Browse the repository at this point in the history
  • Loading branch information
oknozor committed Sep 24, 2020
1 parent 3fd06fe commit 481d577
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -117,7 +117,7 @@ pub fn verify(author: Option<String>, message: &str) -> Result<()> {
shorthand: "not committed".to_string(),
message,
date: Utc::now().naive_utc(),
author: author.unwrap_or("Unknown".to_string()),
author: author.unwrap_or_else(|| "Unknown".to_string()),
}
);
Ok(())
Expand Down

0 comments on commit 481d577

Please sign in to comment.