Skip to content

Commit

Permalink
Remove Path->String kludge in Rusty-leveldb.
Browse files Browse the repository at this point in the history
  • Loading branch information
vi committed Mar 3, 2018
1 parent dcda620 commit ad9ecab
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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,
)?;

Expand Down

0 comments on commit ad9ecab

Please sign in to comment.