summaryrefslogtreecommitdiff
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, 5 insertions, 1 deletions
diff --git a/src/config.rs b/src/config.rs
index 625118a..439c17c 100644
--- a/src/config.rs
+++ b/src/config.rs
@@ -7,7 +7,8 @@ pub struct Config {
7 pub root: String, 7 pub root: String,
8 pub user: Vec<String>, 8 pub user: Vec<String>,
9 pub directories: Vec<String>, 9 pub directories: Vec<String>,
10 pub custom_directories: Map<String, String> 10 pub custom_directories: Map<String, String>,
11 pub device: String,
11} 12}
12 13
13impl Default for Config { 14impl Default for Config {
@@ -17,6 +18,9 @@ impl Default for Config {
17 user: vec![], 18 user: vec![],
18 directories: vec![], 19 directories: vec![],
19 custom_directories: Map::new(), 20 custom_directories: Map::new(),
21 device: gethostname::gethostname()
22 .into_string()
23 .expect("invalid hostname string"),
20 } 24 }
21 } 25 }
22} 26}