Skip to content

Commit 1e1a42c

Browse files
committed
Use unreachable instead of panic.
1 parent 7dd15fe commit 1e1a42c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/cargo/core/gc.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -478,7 +478,7 @@ pub fn parse_human_size(input: &str) -> CargoResult<u64> {
478478
"kib" => 1024.0,
479479
"mib" => 1024.0 * 1024.0,
480480
"gib" => 1024.0 * 1024.0 * 1024.0,
481-
s => panic!("suffix `{s}` out of sync with regex"),
481+
s => unreachable!("suffix `{s}` out of sync with regex"),
482482
},
483483
None => {
484484
return cap[1]

0 commit comments

Comments
 (0)