Skip to content

Commit

Permalink
Fix lint warnings (#281)
Browse files Browse the repository at this point in the history
  • Loading branch information
Gobidev authored Mar 26, 2023
1 parent b7a42b6 commit c563e17
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/error.rs
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ pub fn print_errors(err: Error) {
None => println!("{}: {:?}", "Error".bright_red(), err),
},
Error::IOError(err) => {
return println!("{}: {:?}", "Error".bright_red(), err);
println!("{}: {:?}", "Error".bright_red(), err);
}
}
}
2 changes: 1 addition & 1 deletion src/theme/base.rs
Original file line number Diff line number Diff line change
Expand Up @@ -276,7 +276,7 @@ pub fn create_theme(opt: &Opt) -> Theme {
let mut theme = Theme::default();
if let Some(th) = &opt.theme {
locations.iter().find(|d| {
let path = d.join(&format!("{th}.toml"));
let path = d.join(format!("{th}.toml"));
if !path.exists() {
return false;
}
Expand Down

0 comments on commit c563e17

Please sign in to comment.