This commit is contained in:
Rob Ede 2022-02-28 13:43:22 +00:00 committed by ad hoc
parent 3b2e467ca6
commit 15150db957
No known key found for this signature in database
GPG key ID: 4F00A782990CC643
8 changed files with 13 additions and 16 deletions

View file

@ -44,7 +44,7 @@ fn config_user_id_path(db_path: &Path) -> Option<PathBuf> {
path.join("instance-uid")
.display()
.to_string()
.replace("/", "-")
.replace('/', "-")
})
.zip(MEILISEARCH_CONFIG_PATH.as_ref())
.map(|(filename, config_path)| config_path.join(filename.trim_start_matches('-')))