Cargo clippy pass

This commit is contained in:
Clément Renault 2019-10-18 13:21:41 +02:00
parent ca26a0f2e4
commit 9dce41ed6b
No known key found for this signature in database
GPG key ID: 92ADA4E935E71FA4
16 changed files with 82 additions and 66 deletions

View file

@ -7,7 +7,7 @@ pub fn apply_schema_update(
main_store: store::Main,
new_schema: &Schema,
) -> MResult<()> {
if let Some(_) = main_store.schema(writer)? {
if main_store.schema(writer)?.is_some() {
return Err(UnsupportedOperation::SchemaAlreadyExists.into());
}