aboutsummaryrefslogtreecommitdiffstats
path: root/src/config.rs
diff options
context:
space:
mode:
authorJesse Luehrs <doy@tozt.net>2023-02-18 15:38:43 -0500
committerJesse Luehrs <doy@tozt.net>2023-02-18 15:49:17 -0500
commit1d68b717e8ae12dfdf8af9c451dbf0d6a8cc6d71 (patch)
tree9416fd8d1bc125aa6f217d6cbc6340e27655bb99 /src/config.rs
parentc6a948a5cfa2783907c084cc8d1034c33db319e6 (diff)
downloadrbw-1d68b717e8ae12dfdf8af9c451dbf0d6a8cc6d71.tar.gz
rbw-1d68b717e8ae12dfdf8af9c451dbf0d6a8cc6d71.zip
clippy
Diffstat (limited to 'src/config.rs')
-rw-r--r--src/config.rs3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/config.rs b/src/config.rs
index baa855b..11864f1 100644
--- a/src/config.rs
+++ b/src/config.rs
@@ -152,8 +152,7 @@ impl Config {
#[must_use]
pub fn client_cert_path(&self) -> String {
- self.client_cert_path.clone()
- .unwrap_or_else(|| "".to_string())
+ self.client_cert_path.clone().unwrap_or_default()
}
#[must_use]