aboutsummaryrefslogtreecommitdiffstats
path: root/README.md
diff options
context:
space:
mode:
Diffstat (limited to 'README.md')
-rw-r--r--README.md4
1 files changed, 2 insertions, 2 deletions
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() {