aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/subs.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/subs.rs b/src/subs.rs
index df9531d..a735543 100644
--- a/src/subs.rs
+++ b/src/subs.rs
@@ -36,7 +36,7 @@ pub async fn run() -> ! {
}),
];
- if std::env::var("DISABLE_PROMPT").unwrap_or("false".to_string()) == "true" {
+ if std::env::var("DISABLE_PROMPT").unwrap_or_else(|_| "false".to_string()) == "true" {
info!("starting with prompt disabled");
loop {
std::thread::sleep(std::time::Duration::default());