Skip to content

Commit

Permalink
fixes lint errors
Browse files Browse the repository at this point in the history
  • Loading branch information
reederc42 committed May 26, 2024
1 parent 325aef2 commit d8044d9
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions tools/src/update_mime_types.rs
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
use std::{collections::HashMap, fs::File, io::{BufWriter, Write}};
use std::{collections::HashMap, fs::File, io::Write};

use regex::Regex;

Expand Down Expand Up @@ -45,8 +45,8 @@ pub async fn cmd(args: Args) {
.collect();
lines.sort();

f.write(lines.join("\n").as_bytes()).unwrap();
f.write(b"\n").unwrap();
let _ = f.write(lines.join("\n").as_bytes()).unwrap();
let _ = f.write(b"\n").unwrap();
}

fn nginx_to_map(nginx_mime_types: &str) -> HashMap<&str, &str> {
Expand Down
2 changes: 1 addition & 1 deletion wiki/build.rs
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,7 @@ fn build_assets(dir: &Path) -> Vec<Asset> {

let path = String::from(
p.to_str().unwrap()
.replace("\\", "/")
.replace('\\', "/")
.strip_prefix(dir.to_str().unwrap()).unwrap()
.trim_start_matches('/')
);
Expand Down

0 comments on commit d8044d9

Please sign in to comment.