Skip to content

Commit

Permalink
Remove one-liner #[allow(unused_must_use)]
Browse files Browse the repository at this point in the history
  • Loading branch information
Octalbyte committed Feb 12, 2022
1 parent aa32570 commit 52d0527
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -118,15 +118,13 @@ fn main() {
let _wrds = &i.value;
let wrds: Vec<&AsciiStr> = i.value.split(ascii::AsciiChar::Space).collect();
if *restricted && wrds.len() < 2 {
#[allow(unused_must_use)]
handler::unauthorized(rq);
println!("{} -> {}", output, "401 Unauthorized".red());
continue 'outer;

}
if *restricted && wrds[0] != "Basic" {
#[allow(unused_must_use)]
handler::unauthorized(rq);
handler::unauthorized(rq);
println!("{} -> {}", output, "401 Unauthorized".red());
continue 'outer;
}
Expand Down

0 comments on commit 52d0527

Please sign in to comment.