This commit is contained in:
Rob Ede 2022-02-28 13:43:22 +00:00
parent 961e22493c
commit 8d624b3800
No known key found for this signature in database
GPG key ID: 97C636207D3EF933
8 changed files with 13 additions and 16 deletions

View file

@ -24,7 +24,7 @@ zip = { version = "0.5.13", optional = true }
[dependencies]
actix-cors = "0.6"
actix-web = { version = "4", features = ["rustls"] }
actix-web-static-files = { git = "https://github.com/robjtede/actix-web-static-files.git", rev = "baebe8e3", optional = true }
actix-web-static-files = { git = "https://github.com/kilork/actix-web-static-files.git", rev = "2d3b6160", optional = true }
anyhow = { version = "1.0.43", features = ["backtrace"] }
arc-swap = "1.3.2"
async-stream = "0.3.2"

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('-')))

View file

@ -60,10 +60,7 @@ async fn perform_snapshot() {
let temp = tempfile::tempdir().unwrap();
let snapshot_path = snapshot_dir
.path()
.to_owned()
.join("db.snapshot".to_string());
let snapshot_path = snapshot_dir.path().to_owned().join("db.snapshot");
let options = Opt {
import_snapshot: Some(snapshot_path),