aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/main.rs6
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()
));