mirror of
				https://github.com/meilisearch/meilisearch.git
				synced 2025-10-31 07:56:28 +00:00 
			
		
		
		
	fix clippy
This commit is contained in:
		| @@ -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(()) | ||||
|   | ||||
		Reference in New Issue
	
	Block a user