From 48f192e3499ee9609660a3e8bfcba22cc4a93ee8 Mon Sep 17 00:00:00 2001 From: Jikstra <34889164+Jikstra@users.noreply.github.com> Date: Tue, 4 Jan 2022 18:08:03 +0100 Subject: Apply alimjays suggestion Co-authored-by: Ali MJ Al-Nasrawy --- src/config.rs | 1 - 1 file changed, 1 deletion(-) (limited to 'src/config.rs') diff --git a/src/config.rs b/src/config.rs index 94e232f..b163e96 100644 --- a/src/config.rs +++ b/src/config.rs @@ -132,7 +132,6 @@ impl MiniserveConfig { }; let route_prefix = match (args.route_prefix, args.random_route) { - (Some(prefix), _) if prefix.starts_with('/') => prefix, (Some(prefix), _) => format!("/{}", prefix.trim_matches('/')), (_, true) => format!("/{}", nanoid::nanoid!(6, &ROUTE_ALPHABET)), _ => "".to_owned(), -- cgit v1.2.3