mirror of
https://github.com/meilisearch/meilisearch.git
synced 2024-11-30 00:55:00 +08:00
fix clippy
This commit is contained in:
parent
83ffdc888a
commit
d892a2643e
@ -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(())
|
||||
|
@ -107,7 +107,7 @@ 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!(
|
||||
@ -115,7 +115,7 @@ pub fn load_snapshot(
|
||||
snapshot_path
|
||||
.as_ref()
|
||||
.canonicalize()
|
||||
.unwrap_or(snapshot_path.as_ref().to_owned())
|
||||
.unwrap_or_else(|_| snapshot_path.as_ref().to_owned())
|
||||
)
|
||||
} else {
|
||||
Ok(())
|
||||
|
Loading…
Reference in New Issue
Block a user