Skip to content

Commit

Permalink
Make clippy happy
Browse files Browse the repository at this point in the history
somewhat
  • Loading branch information
sorz committed Dec 7, 2021
1 parent 3478885 commit 4b058ba
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions src/proxy/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,7 @@ impl UserPassAuthCredential {
}
}

#[allow(clippy::mutable_key_type)]
#[derive(Debug, Serialize)]
pub struct ProxyServer {
pub addr: SocketAddr,
Expand Down
2 changes: 1 addition & 1 deletion src/web/rich.rs
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ impl ResourceBundle {
file.read_to_end(&mut content)
.expect("error on read moproxy-web bundle");

let name_ext = name.rsplitn(2, '.').next();
let name_ext = name.rsplit_once('.').map(|x| x.1);
let mime = match name_ext {
Some("html") => "text/html",
Some("js") => "application/javascript",
Expand Down

0 comments on commit 4b058ba

Please sign in to comment.