aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorFuwn <[email protected]>2021-05-06 00:27:07 +0000
committerFuwn <[email protected]>2021-05-06 00:27:07 +0000
commit018523e5ebc21d9ef6dc1b1594b72bdd1007f6fc (patch)
tree1e4bdedd1377933f65ba86a669ec77b94416e55b /src
parenttest(db): ignore test that only works in certain cases (diff)
downloadwhirl-018523e5ebc21d9ef6dc1b1594b72bdd1007f6fc.tar.xz
whirl-018523e5ebc21d9ef6dc1b1594b72bdd1007f6fc.zip
perf(subs): clippy
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());