diff --git a/src/config.rs b/src/config.rs index 0fbd51a..254e8ac 100644 --- a/src/config.rs +++ b/src/config.rs @@ -6,12 +6,12 @@ use std::path::{Path, PathBuf}; use crate::cli::Cli; -#[derive(Deserialize, Debug)] +#[derive(Clone, Deserialize, Debug)] pub struct Config { pub qbittorrent: ClientConfig, } -#[derive(Deserialize, Debug)] +#[derive(Clone, Deserialize, Debug)] pub struct ClientConfig { pub host: String, pub port: usize, @@ -19,7 +19,7 @@ pub struct ClientConfig { pub password: String, } -#[derive(Debug, Snafu)] +#[derive(Clone, Debug, Snafu)] pub enum ConfigError { #[snafu(display("Invalid configuration file format at: {path}"))] Config { source: toml::de::Error, path: String },