diff options
author | fxqnlr <[email protected]> | 2024-09-30 14:43:46 +0200 |
---|---|---|
committer | fxqnlr <[email protected]> | 2024-09-30 14:43:46 +0200 |
commit | 7179fa0262c92b124e5d444754a572b2cecbf5cd (patch) | |
tree | 55e0a23f17883b5841baff81402ea2cae3b347cc /src/pathinfo.rs | |
parent | 83ac2ad62c27a3089f892b409405f74c4952f2da (diff) | |
download | arbs-main.tar arbs-main.tar.gz arbs-main.zip |
Diffstat (limited to 'src/pathinfo.rs')
-rw-r--r-- | src/pathinfo.rs | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/src/pathinfo.rs b/src/pathinfo.rs index 80614cd..d0ab61a 100644 --- a/src/pathinfo.rs +++ b/src/pathinfo.rs | |||
@@ -392,13 +392,12 @@ mod tests { | |||
392 | } | 392 | } |
393 | 393 | ||
394 | #[test] | 394 | #[test] |
395 | fn compare_to_last_modified() -> color_eyre::Result<()> { | 395 | fn compare_to_last_modified() -> Result<()> { |
396 | 396 | ||
397 | let cwd = std::env::current_dir()?; | 397 | let cwd = std::env::current_dir()?; |
398 | let test_dir = format!("{}/backup-test-dir", cwd.display()); | 398 | let test_dir = format!("{}/backup-test-dir", cwd.display()); |
399 | 399 | ||
400 | let mut config = Config::default(); | 400 | let mut config = Config { root: "./backup-test".to_string(), ..Default::default() } ; |
401 | config.root = "./backup-test".to_string(); | ||
402 | config | 401 | config |
403 | .directories | 402 | .directories |
404 | .push(format!("r:{test_dir}")); | 403 | .push(format!("r:{test_dir}")); |