diff options
Diffstat (limited to 'src/main.rs')
-rw-r--r-- | src/main.rs | 9 |
1 files changed, 3 insertions, 6 deletions
diff --git a/src/main.rs b/src/main.rs index fce9cf6..2a43780 100644 --- a/src/main.rs +++ b/src/main.rs @@ -134,15 +134,12 @@ 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(), - )) + .paint(format!("/{random_route}", random_route = random_route,)) .bold() )); } |