From 48c9e03e076d508a2b99d3a32bf22142773367fd Mon Sep 17 00:00:00 2001 From: Jordan Terrell Date: Mon, 4 Feb 2019 17:02:06 -0600 Subject: [PATCH] Using None instead of iter::empty for open_cf function... --- src/db.rs | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) 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.