Skip to content

Commit

Permalink
cgi: resolve split_once clippy lint
Browse files Browse the repository at this point in the history
  • Loading branch information
bradfier committed Oct 12, 2022
1 parent e5176ee commit e59f4cc
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
2 changes: 1 addition & 1 deletion clippy.toml
Original file line number Diff line number Diff line change
@@ -1 +1 @@
msrv = "1.51"
msrv = "1.60"
4 changes: 1 addition & 3 deletions src/cgi.rs
Original file line number Diff line number Diff line change
Expand Up @@ -151,9 +151,7 @@ impl CgiRun for Command {
break;
}

let mut splits = header.splitn(2, ':');
let header = splits.next().unwrap(); // TODO: return Err instead?
let val = splits.next().unwrap(); // TODO: return Err instead?
let (header, val) = header.split_once(':').unwrap();
let val = &val[1..];

if header == "Status" {
Expand Down

0 comments on commit e59f4cc

Please sign in to comment.