aboutsummaryrefslogtreecommitdiffstats
path: root/tests/main.rs
diff options
context:
space:
mode:
Diffstat (limited to 'tests/main.rs')
-rw-r--r--tests/main.rs3
1 files changed, 2 insertions, 1 deletions
diff --git a/tests/main.rs b/tests/main.rs
index 8c68ca3..6840dc0 100644
--- a/tests/main.rs
+++ b/tests/main.rs
@@ -1,8 +1,9 @@
extern crate notmuch;
+extern crate dirs;
fn main() {
- let mut mail_path = std::env::home_dir().unwrap();
+ let mut mail_path = dirs::home_dir().unwrap();
mail_path.push(".mail");
match notmuch::Database::open(&mail_path.to_str().unwrap().to_string(), notmuch::DatabaseMode::ReadOnly){