summaryrefslogtreecommitdiffstats
path: root/src/config.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/config.rs')
-rw-r--r--src/config.rs6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/config.rs b/src/config.rs
index af82885..c86e0ad 100644
--- a/src/config.rs
+++ b/src/config.rs
@@ -7,12 +7,12 @@ use std::path::PathBuf;
use crate::error::{Error, Result};
use crate::utils;
-#[derive(Deserialize, Serialize, Debug)]
+#[derive(Deserialize, Serialize, Debug, Clone)]
pub struct Config {
pub api_key: Option<String>,
pub limit: u16,
pub lucky: bool,
- pub site: String,
+ pub sites: Vec<String>,
}
// TODO make a friender config file, like the colors.toml below
@@ -22,7 +22,7 @@ impl Default for Config {
api_key: None,
limit: 20,
lucky: true,
- site: String::from("stackoverflow"),
+ sites: vec![String::from("stackoverflow")],
}
}
}