Skip to content

Commit

Permalink
Fix clippy lints
Browse files Browse the repository at this point in the history
  • Loading branch information
fabricereix committed Oct 14, 2023
1 parent 8b2b3c1 commit 0541819
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
3 changes: 1 addition & 2 deletions src/format/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -73,8 +73,7 @@ impl Comment {
fn comment_to_id(value: &str) -> String {
value
.to_lowercase()
.replace('/', "-")
.replace(' ', "-")
.replace(['/', ' '], "-")
.replace("----", "-")
.replace("---", "-")
.replace("--", "-")
Expand Down
2 changes: 1 addition & 1 deletion src/main/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ fn get_content(options: &CliOptions) -> String {
}
Some(input_file) => {
let mut s = String::new();
let mut f = File::open(&input_file).expect("Unable to open file");
let mut f = File::open(input_file).expect("Unable to open file");
f.read_to_string(&mut s).expect("Unable to read string");
s
}
Expand Down

0 comments on commit 0541819

Please sign in to comment.