Using None instead of iter::empty for open_cf function...

master
Jordan Terrell 6 years ago
parent ceb5744c51
commit 48c9e03e07
  1. 3
      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<P: AsRef<Path>>(opts: &Options, path: P) -> Result<DB, Error> {
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.

Loading…
Cancel
Save