From 59d54070b945d1ba31bd300c632815a1bed8b072 Mon Sep 17 00:00:00 2001 From: Jordan Terrell Date: Tue, 5 Feb 2019 07:23:18 -0600 Subject: [PATCH] Formatting recent updates to master branch [skip ci] --- src/db.rs | 28 ++++++++++++---------------- 1 file changed, 12 insertions(+), 16 deletions(-) diff --git a/src/db.rs b/src/db.rs index dd2a061..8cdf53a 100644 --- a/src/db.rs +++ b/src/db.rs @@ -683,11 +683,12 @@ impl DB { /// Open a database with the given database options and column family names. /// /// Column families opened using this function will be created with default `Options`. - pub fn open_cf(opts: &Options, path: P, cfs: I) -> Result - where P: AsRef, - I: IntoIterator, - N: AsRef { - + pub fn open_cf(opts: &Options, path: P, cfs: I) -> Result + where + P: AsRef, + I: IntoIterator, + N: AsRef, + { let cfs = cfs .into_iter() .map(|name| ColumnFamilyDescriptor::new(name.as_ref(), Options::default())); @@ -696,17 +697,12 @@ impl DB { } /// Open a database with the given database options and column family descriptors. - pub fn open_cf_descriptors( - opts: &Options, - path: P, - cfs: I, - ) -> Result - where P: AsRef, - I: IntoIterator { - - let cfs: Vec<_> = cfs - .into_iter() - .collect(); + pub fn open_cf_descriptors(opts: &Options, path: P, cfs: I) -> Result + where + P: AsRef, + I: IntoIterator, + { + let cfs: Vec<_> = cfs.into_iter().collect(); let path = path.as_ref(); let cpath = match CString::new(path.to_string_lossy().as_bytes()) {