Skip to content
This repository has been archived by the owner on Jul 1, 2021. It is now read-only.

Commit

Permalink
fix clippy
Browse files Browse the repository at this point in the history
  • Loading branch information
MarinPostma committed Mar 24, 2021
1 parent 83ffdc8 commit d892a26
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion meilisearch-http/src/index_controller/index_actor/actor.rs
Original file line number Diff line number Diff line change
Expand Up @@ -323,7 +323,7 @@ impl<S: IndexStore + Sync + Send> IndexActor<S> {
})
.await
.map_err(|e| IndexError::Error(e.into()))?
.map_err(|e| IndexError::Error(e.into()))?;
.map_err(IndexError::Error)?;
}

Ok(())
Expand Down
4 changes: 2 additions & 2 deletions meilisearch-http/src/index_controller/snapshot.rs
Original file line number Diff line number Diff line change
Expand Up @@ -107,15 +107,15 @@ pub fn load_snapshot(
db_path
.as_ref()
.canonicalize()
.unwrap_or(db_path.as_ref().to_owned())
.unwrap_or_else(|_| db_path.as_ref().to_owned())
)
} else if !snapshot_path.as_ref().exists() && !ignore_missing_snapshot {
bail!(
"snapshot doesn't exist at {:?}",
snapshot_path
.as_ref()
.canonicalize()
.unwrap_or(snapshot_path.as_ref().to_owned())
.unwrap_or_else(|_| snapshot_path.as_ref().to_owned())
)
} else {
Ok(())
Expand Down

0 comments on commit d892a26

Please sign in to comment.