From 5040271655042298bd0854e0feff4e8b50e4163a Mon Sep 17 00:00:00 2001 From: Lukas Stabe Date: Thu, 24 Sep 2020 04:02:59 +0200 Subject: use unreachable instead of panic for unreachable case --- src/listing.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src') diff --git a/src/listing.rs b/src/listing.rs index 66f0b0a..f45c493 100644 --- a/src/listing.rs +++ b/src/listing.rs @@ -212,7 +212,7 @@ pub fn directory_listing( link_accumulator .push_str(&(utf8_percent_encode(&name, FRAGMENT).to_string() + "/")); } - _ => panic!(), + _ => unreachable!(), }; res.push(Breadcrumb::new( -- cgit v1.2.3