mirror of
https://github.com/meilisearch/MeiliSearch
synced 2025-07-04 04:17:10 +02:00
Clippy fixes after updating Rust to v1.66
This commit is contained in:
parent
867279f2a4
commit
869d331680
8 changed files with 25 additions and 25 deletions
|
@ -102,7 +102,7 @@ impl V4Reader {
|
|||
&self.dump.path().join("indexes").join(index.index_meta.uuid.to_string()),
|
||||
&index.index_meta,
|
||||
BufReader::new(
|
||||
File::open(&self.dump.path().join("updates").join("data.jsonl")).unwrap(),
|
||||
File::open(self.dump.path().join("updates").join("data.jsonl")).unwrap(),
|
||||
),
|
||||
)
|
||||
}))
|
||||
|
|
|
@ -25,7 +25,7 @@ impl DumpWriter {
|
|||
if let Some(instance_uuid) = instance_uuid {
|
||||
fs::write(
|
||||
dir.path().join("instance_uid.uuid"),
|
||||
&instance_uuid.as_hyphenated().to_string(),
|
||||
instance_uuid.as_hyphenated().to_string(),
|
||||
)?;
|
||||
}
|
||||
|
||||
|
@ -36,7 +36,7 @@ impl DumpWriter {
|
|||
};
|
||||
fs::write(dir.path().join("metadata.json"), serde_json::to_string(&metadata)?)?;
|
||||
|
||||
std::fs::create_dir(&dir.path().join("indexes"))?;
|
||||
std::fs::create_dir(dir.path().join("indexes"))?;
|
||||
|
||||
Ok(DumpWriter { dir })
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue