From ad9ecabce1c6cc2025a7ebdf41a41237ee939269 Mon Sep 17 00:00:00 2001 From: Vitaly _Vi Shukela Date: Sun, 4 Mar 2018 01:08:20 +0300 Subject: [PATCH] Remove Path->String kludge in Rusty-leveldb. --- src/main.rs | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/src/main.rs b/src/main.rs index 7060a55..f6818ab 100644 --- a/src/main.rs +++ b/src/main.rs @@ -92,9 +92,7 @@ impl Database for MyDatabase { fn run(opt: &Opt) -> BoxResult<()> { let dbopts: rusty_leveldb::Options = Default::default(); let db = LevelDB::open( - opt.db.to_str().expect( - "rusty-leveldb opens only UTF-8 paths", - ), + &opt.db, dbopts, )?;