diff options
author | Nora Widdecke <nora@sequoia-pgp.org> | 2021-04-06 19:58:21 +0200 |
---|---|---|
committer | Nora Widdecke <nora@sequoia-pgp.org> | 2021-04-09 13:13:58 +0200 |
commit | 9424cd350f32a97479a74d919c646f9e26c2ebce (patch) | |
tree | e7b62ae2693ccbcb73d74cacabbf6c9a31a4552e /ipc | |
parent | ec5129c0863962dd3ee32b6af29be45d4d979193 (diff) |
Lint: Use lazy evaluation.
- https://rust-lang.github.io/rust-clippy/master/index.html#or_fun_call
Diffstat (limited to 'ipc')
-rw-r--r-- | ipc/src/core.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/ipc/src/core.rs b/ipc/src/core.rs index 06adc353..56522ccd 100644 --- a/ipc/src/core.rs +++ b/ipc/src/core.rs @@ -186,7 +186,7 @@ impl Config { } else { if home_not_set { c.home = - dirs::home_dir().ok_or( + dirs::home_dir().ok_or_else(|| anyhow::anyhow!("Failed to get users home directory"))? .join(".sequoia"); } |