diff options
author | Lars Wirzenius <liw@liw.fi> | 2021-03-03 11:14:48 +0200 |
---|---|---|
committer | Lars Wirzenius <liw@liw.fi> | 2021-03-03 11:18:22 +0200 |
commit | fde9bebf33cdd1af8d34bf831a87bdb76fbd9512 (patch) | |
tree | bc2c087c43508e5e58fc18696b7178a23e23e30e /src | |
parent | c93961b0c682b6613849976a4cf8fe7394f01d69 (diff) | |
download | obnam2-fde9bebf33cdd1af8d34bf831a87bdb76fbd9512.tar.gz |
refactor: drop unnecessary derives for config structs
We never serialize TentativeClientConfig or de-serialize ClientConfig,
so those derives are unnecessary.
Diffstat (limited to 'src')
-rw-r--r-- | src/client.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/client.rs b/src/client.rs index 84a6677..f74e184 100644 --- a/src/client.rs +++ b/src/client.rs @@ -21,7 +21,7 @@ use std::path::{Path, PathBuf}; const DEFAULT_CHUNK_SIZE: usize = MIB as usize; const DEVNULL: &str = "/dev/null"; -#[derive(Debug, Serialize, Deserialize, Clone)] +#[derive(Debug, Deserialize, Clone)] #[serde(deny_unknown_fields)] struct TentativeClientConfig { server_url: String, @@ -31,7 +31,7 @@ struct TentativeClientConfig { log: Option<PathBuf>, } -#[derive(Debug, Serialize, Deserialize, Clone)] +#[derive(Debug, Serialize, Clone)] pub struct ClientConfig { pub server_url: String, pub verify_tls_cert: bool, |