diff --git a/crates/file-store/src/lib.rs b/crates/file-store/src/lib.rs index d43868c67..16de155ae 100644 --- a/crates/file-store/src/lib.rs +++ b/crates/file-store/src/lib.rs @@ -60,7 +60,7 @@ impl FileStore { /// Returns the file corresponding to the requested uuid. pub fn get_update(&self, uuid: Uuid) -> Result { - let path = self.get_update_path(uuid); + let path = self.update_path(uuid); let file = match StdFile::open(path) { Ok(file) => file, Err(e) => { @@ -72,7 +72,7 @@ impl FileStore { } /// Returns the path that correspond to this uuid, the path could not exists. - pub fn get_update_path(&self, uuid: Uuid) -> PathBuf { + pub fn update_path(&self, uuid: Uuid) -> PathBuf { self.path.join(uuid.to_string()) } diff --git a/crates/meilitool/src/upgrade/v1_12.rs b/crates/meilitool/src/upgrade/v1_12.rs index 1dd679eb9..a5405c8cb 100644 --- a/crates/meilitool/src/upgrade/v1_12.rs +++ b/crates/meilitool/src/upgrade/v1_12.rs @@ -68,7 +68,7 @@ fn convert_update_files(db_path: &Path) -> anyhow::Result<()> { for uuid in file_store.all_uuids().context("while retrieving uuids from file store")? { let uuid = uuid.context("while retrieving uuid from file store")?; - let update_file_path = file_store.get_update_path(uuid); + let update_file_path = file_store.update_path(uuid); let update_file = file_store .get_update(uuid) .with_context(|| format!("while getting update file for uuid {uuid:?}"))?;