diff options
author | Lars Wirzenius <liw@liw.fi> | 2022-07-17 10:22:20 +0300 |
---|---|---|
committer | Lars Wirzenius <liw@liw.fi> | 2022-07-17 10:23:30 +0300 |
commit | a4845a44d69ecc5f664f1d7536ddbc620b201fb2 (patch) | |
tree | c4a7ffeef2e2d6497dad5b70c9f1add6b798479d /src/config.rs | |
parent | 3bdeed513f9fc9ddc36cdabcf5db6642329dc596 (diff) | |
download | obnam2-a4845a44d69ecc5f664f1d7536ddbc620b201fb2.tar.gz |
chore: make code more idiomatic, based on clippy warnings
Sponsored-by: author
Diffstat (limited to 'src/config.rs')
-rw-r--r-- | src/config.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/config.rs b/src/config.rs index a9be716..5774aad 100644 --- a/src/config.rs +++ b/src/config.rs @@ -62,11 +62,11 @@ impl ClientConfig { let exclude_cache_tag_directories = tentative.exclude_cache_tag_directories.unwrap_or(true); let config = Self { - chunk_size: tentative.chunk_size.or(Some(DEFAULT_CHUNK_SIZE)).unwrap(), + chunk_size: tentative.chunk_size.unwrap_or(DEFAULT_CHUNK_SIZE), filename: filename.to_path_buf(), roots, server_url: tentative.server_url, - verify_tls_cert: tentative.verify_tls_cert.or(Some(false)).unwrap(), + verify_tls_cert: tentative.verify_tls_cert.unwrap_or(false), log, exclude_cache_tag_directories, }; |