From d396881816cd256cb12d03deebea445cba99ea85 Mon Sep 17 00:00:00 2001 From: fxqnlr Date: Mon, 9 Sep 2024 16:39:29 +0200 Subject: name change --- Cargo.lock | 2 +- Cargo.toml | 2 +- src/pathinfo.rs | 6 +++--- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/Cargo.lock b/Cargo.lock index e72016e..5027c92 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -33,7 +33,7 @@ source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "b3d1d046238990b9cf5bcde22a3fb3584ee5cf65fb2765f454ed428c7a0063da" [[package]] -name = "arps" +name = "arbs" version = "0.1.0" dependencies = [ "anyhow", diff --git a/Cargo.toml b/Cargo.toml index 9fc7b01..629f6a6 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,5 +1,5 @@ [package] -name = "arps" +name = "arbs" version = "0.1.0" edition = "2021" diff --git a/src/pathinfo.rs b/src/pathinfo.rs index 5b9aa21..8b1ca2f 100644 --- a/src/pathinfo.rs +++ b/src/pathinfo.rs @@ -375,7 +375,7 @@ mod tests { config.root = "./backup-test".to_string(); config .directories - .push("u:fx/code/proj/arps/backup-test-dir".to_string()); + .push("u:fx/code/proj/arbs/backup-test-dir".to_string()); create_dir_all("./backup-test-dir")?; let mut f = File::create("./backup-test-dir/size.txt")?; @@ -395,12 +395,12 @@ mod tests { let mut f = File::create("./backup-test-dir/content.txt")?; f.write_all("unmodefied".as_bytes())?; - let pi = PathInfo::from_path(&config, "u:fx/code/proj/arps/backup-test-dir")?; + let pi = PathInfo::from_path(&config, "u:fx/code/proj/arbs/backup-test-dir")?; let last_backup = Backup::get_last(&config)?.unwrap(); for file in pi.children { println!("test rel: {}", file.rel_location); - let res = if file.rel_location == "code/proj/arps/backup-test-dir/nothing.txt" { + let res = if file.rel_location == "code/proj/arbs/backup-test-dir/nothing.txt" { Some(last_backup.id.clone()) } else { None -- cgit v1.2.3