diff --git a/Cargo.lock b/Cargo.lock index cd70b6f..4b2c601 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -3164,7 +3164,7 @@ dependencies = [ [[package]] name = "rustus" -version = "0.7.3" +version = "0.7.4" dependencies = [ "actix-cors", "actix-files", diff --git a/Cargo.toml b/Cargo.toml index 66546b0..7f81438 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "rustus" -version = "0.7.3" +version = "0.7.4" edition = "2021" description = "TUS protocol implementation written in Rust." keywords = ["tus", "server", "actix-web"] diff --git a/src/storages/models/available_stores.rs b/src/storages/models/available_stores.rs index b33d6ef..6dd9ea0 100644 --- a/src/storages/models/available_stores.rs +++ b/src/storages/models/available_stores.rs @@ -73,8 +73,8 @@ fn from_string_or_path(variable: &Option, path: &Option) -> Str if let Some(variable) = variable { variable.to_string() } else if let Some(path) = path { - let file = File::open("path_to_your_file") - .unwrap_or_else(|_| panic!("failed to open path {}", path.display())); + let file = + File::open(path).unwrap_or_else(|_| panic!("failed to open path {}", path.display())); let mut contents = String::new(); BufReader::new(file) .read_to_string(&mut contents)