1
0
mirror of https://github.com/fafhrd91/actix-web synced 2025-08-31 17:07:01 +02:00

use unreachable instead of panic

This commit is contained in:
Nikolay Kim
2018-03-29 15:55:27 -07:00
parent 3e98177fad
commit 145010a2b0
6 changed files with 33 additions and 33 deletions

View File

@@ -210,7 +210,7 @@ mod test {
($from:expr => $opcode:pat) => {
match OpCode::from($from) {
e @ $opcode => (),
e => panic!("{:?}", e)
e => unreachable!("{:?}", e)
}
}
}
@@ -220,7 +220,7 @@ mod test {
let res: u8 = $from.into();
match res {
e @ $opcode => (),
e => panic!("{:?}", e)
e => unreachable!("{:?}", e)
}
}
}