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
|
.await
|
||||||
.map_err(|e| IndexError::Error(e.into()))?
|
.map_err(|e| IndexError::Error(e.into()))?
|
||||||
.map_err(|e| IndexError::Error(e.into()))?;
|
.map_err(IndexError::Error)?;
|
||||||
}
|
}
|
||||||
|
|
||||||
Ok(())
|
Ok(())
|
||||||
|
@ -107,7 +107,7 @@ pub fn load_snapshot(
|
|||||||
db_path
|
db_path
|
||||||
.as_ref()
|
.as_ref()
|
||||||
.canonicalize()
|
.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 {
|
} else if !snapshot_path.as_ref().exists() && !ignore_missing_snapshot {
|
||||||
bail!(
|
bail!(
|
||||||
@ -115,7 +115,7 @@ pub fn load_snapshot(
|
|||||||
snapshot_path
|
snapshot_path
|
||||||
.as_ref()
|
.as_ref()
|
||||||
.canonicalize()
|
.canonicalize()
|
||||||
.unwrap_or(snapshot_path.as_ref().to_owned())
|
.unwrap_or_else(|_| snapshot_path.as_ref().to_owned())
|
||||||
)
|
)
|
||||||
} else {
|
} else {
|
||||||
Ok(())
|
Ok(())
|
||||||
|
Loading…
Reference in New Issue
Block a user