From 304786cbfd8d2d425eb7119b974ca9cb416a6ee0 Mon Sep 17 00:00:00 2001 From: Dirk Van Haerenborgh Date: Mon, 29 Oct 2018 21:54:48 +0100 Subject: fix lifetimes of tags --- tests/main.rs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'tests/main.rs') 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){ -- cgit v1.2.1