Skip to content

Commit

Permalink
Merge branch 'release/0.7.4'
Browse files Browse the repository at this point in the history
  • Loading branch information
s3rius committed Jun 19, 2023
2 parents e8180ad + d231b0c commit 3206250
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
@@ -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"]
Expand Down
4 changes: 2 additions & 2 deletions src/storages/models/available_stores.rs
Original file line number Diff line number Diff line change
Expand Up @@ -73,8 +73,8 @@ fn from_string_or_path(variable: &Option<String>, path: &Option<PathBuf>) -> 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)
Expand Down

0 comments on commit 3206250

Please sign in to comment.