summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLars Wirzenius <liw@liw.fi>2021-03-03 11:14:48 +0200
committerLars Wirzenius <liw@liw.fi>2021-03-03 11:18:22 +0200
commitfde9bebf33cdd1af8d34bf831a87bdb76fbd9512 (patch)
treebc2c087c43508e5e58fc18696b7178a23e23e30e
parentc93961b0c682b6613849976a4cf8fe7394f01d69 (diff)
downloadobnam2-fde9bebf33cdd1af8d34bf831a87bdb76fbd9512.tar.gz
refactor: drop unnecessary derives for config structs
We never serialize TentativeClientConfig or de-serialize ClientConfig, so those derives are unnecessary.
-rw-r--r--src/client.rs4
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,