From 9402ef4cf81e711ca59a1cc24748c6d6c8f7071e Mon Sep 17 00:00:00 2001 From: eaon Date: Mon, 12 Nov 2018 07:58:34 -0500 Subject: Simplify example in README --- README.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'README.md') diff --git a/README.md b/README.md index 4719ee0..7c7811d 100644 --- a/README.md +++ b/README.md @@ -38,8 +38,8 @@ fn main() { let mut mail_path = std::env::home_dir().unwrap(); mail_path.push(".mail"); - let db = notmuch::Database::open(&mail_path.to_str().unwrap().to_string(), notmuch::DatabaseMode::ReadOnly).unwrap(); - let query = db.create_query(&"".to_string()).unwrap(); + let db = notmuch::Database::open(&mail_path, notmuch::DatabaseMode::ReadOnly).unwrap(); + let query = db.create_query("").unwrap(); let mut threads = query.search_threads().unwrap(); while let Some(thread) = threads.next() { -- cgit v1.2.1