diff options
Diffstat (limited to 'src/main.rs')
-rw-r--r-- | src/main.rs | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/main.rs b/src/main.rs index fce9cf6..37c68c9 100644 --- a/src/main.rs +++ b/src/main.rs @@ -134,14 +134,14 @@ fn main() { )) .bold() )); - let random_route = miniserve_config.clone().random_route; - if random_route.is_some() { + + if let Some(random_route) = miniserve_config.clone().random_route { addresses.push_str(&format!( "{}", Color::Green .paint(format!( "/{random_route}", - random_route = random_route.unwrap(), + random_route = random_route, )) .bold() )); |