diff --git a/src/db.rs b/src/db.rs index 4f155ff..f100158 100644 --- a/src/db.rs +++ b/src/db.rs @@ -22,7 +22,6 @@ use std::collections::BTreeMap; use std::ffi::{CStr, CString}; use std::fmt; use std::fs; -use std::iter; use std::marker::PhantomData; use std::ops::Deref; use std::path::Path; @@ -661,7 +660,7 @@ impl DB { /// Open the database with the specified options. pub fn open>(opts: &Options, path: P) -> Result { - DB::open_cf(opts, path, iter::empty::<&str>()) + DB::open_cf(opts, path, None::<&str>) } /// Open a database with the given database options and column family names.