Skip to content

Commit ece230e

Browse files
committed
refactor: code fixes
1 parent 482dfd3 commit ece230e

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

resources/static-folder/Cargo.toml

+1-1
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ keywords = ["shuttle-service", "static-folder"]
99

1010
[dependencies]
1111
async-trait = "0.1.56"
12-
shuttle-service = { path = "../../service", version = "0.7.3", default-features = false }
12+
shuttle-service = { path = "../../service", version = "0.7.2", default-features = false }
1313
tokio = { version = "1.19.2", features = ["rt"] }
1414

1515
[dev-dependencies]

resources/static-folder/src/lib.rs

+2-2
Original file line numberDiff line numberDiff line change
@@ -16,8 +16,8 @@ impl ResourceBuilder<PathBuf> for StaticFolder {
1616
factory: &mut dyn Factory,
1717
_runtime: &Runtime,
1818
) -> Result<PathBuf, shuttle_service::Error> {
19-
let input_dir = factory.get_build_path().join("static");
20-
let output_dir = factory.get_storage_path().join("static");
19+
let input_dir = factory.get_build_path()?.join("static");
20+
let output_dir = factory.get_storage_path()?.join("static");
2121

2222
rename(input_dir, output_dir.clone())?;
2323

0 commit comments

Comments
 (0)