Skip to content

Commit 667b9f7

Browse files
committed
Remove unneccessary branch
1 parent 642f371 commit 667b9f7

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

echo/src/scanners.rs

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -139,10 +139,9 @@ impl Fairing for InitScanners {
139139
active.push(Box::new(GenericScanner::new(value)));
140140
}
141141

142-
match SCANNERS.set(active) {
143-
Ok(_) => {}
144-
Err(_) => panic!("failed to set up scanners!"),
145-
};
142+
if let Err(_) = SCANNERS.set(active) {
143+
panic!("failed to set up scanners!")
144+
}
146145

147146
Ok(rocket)
148147
}

0 commit comments

Comments
 (0)