Merge pull request #80 from TheNeikos/fix/clippy_lints
Fix clippy lints
This commit is contained in:
commit
bd82676aea
2 changed files with 2 additions and 3 deletions
|
|
@ -3,7 +3,6 @@
|
|||
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
|
||||
use std::io::Read;
|
||||
|
||||
use failure;
|
||||
use serde::Serialize;
|
||||
use serde::de::DeserializeOwned;
|
||||
|
||||
|
|
|
|||
|
|
@ -527,11 +527,11 @@ impl<Data, Back, DeSer> Database<Data, Back, DeSer>
|
|||
let mut data = self.data.write().map_err(|_| error::RustbreakErrorKind::Poison)?;
|
||||
*data = Self::inner_load(&mut backend, &self.deser).context(error::RustbreakErrorKind::Backend)?;
|
||||
drop(backend);
|
||||
return Ok(data.clone());
|
||||
Ok(data.clone())
|
||||
} else {
|
||||
let data = self.data.read().map_err(|_| error::RustbreakErrorKind::Poison)?;
|
||||
drop(backend);
|
||||
return Ok(data.clone());
|
||||
Ok(data.clone())
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue