Skip to content

Commit 6e74f13

Browse files
author
Alex
committed
fix(clippy): satisfy workspace all-target build gate Refs #1769
1 parent b80d98d commit 6e74f13

3 files changed

Lines changed: 10 additions & 15 deletions

File tree

crates/terraphim_config/src/project.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -170,10 +170,10 @@ mod tests {
170170
let temp = TempDir::new().unwrap();
171171
let real = temp.path().join("real");
172172
let linked = temp.path().join("linked");
173-
fs::create_dir_all(&real.join(".terraphim")).unwrap();
174-
fs::create_dir_all(&real.join("src")).unwrap();
173+
fs::create_dir_all(real.join(".terraphim")).unwrap();
174+
fs::create_dir_all(real.join("src")).unwrap();
175175
std::os::unix::fs::symlink(&real, &linked).unwrap();
176-
let canonical = std::fs::canonicalize(&real.join(".terraphim")).unwrap();
176+
let canonical = std::fs::canonicalize(real.join(".terraphim")).unwrap();
177177
let result = discover(Some(&linked.join("src"))).unwrap();
178178
assert_eq!(result, Some(canonical));
179179
}

crates/terraphim_orchestrator/src/lib.rs

Lines changed: 6 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -9779,17 +9779,12 @@ sfia_skills = [{ code = "TEST", name = "Testing", level = 4, description = "Desi
97799779
}
97809780
}
97819781

9782-
let dump = match std::fs::read_to_string(&dump_path) {
9783-
Ok(dump) => dump,
9784-
Err(e) => {
9785-
assert!(
9786-
false,
9787-
"env dump not written to {}: {e}",
9788-
dump_path.display()
9789-
);
9790-
String::new()
9791-
}
9792-
};
9782+
assert!(
9783+
dump_path.exists(),
9784+
"env dump not written to {}",
9785+
dump_path.display()
9786+
);
9787+
let dump = std::fs::read_to_string(&dump_path).expect("env dump should be readable");
97939788
assert!(
97949789
dump.contains("ADF_PR_NUMBER=641"),
97959790
"ADF_PR_NUMBER missing from dump:\n{dump}"

crates/terraphim_orchestrator/src/project_adf.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -327,7 +327,7 @@ task = "Run safety checks"
327327
fn discover_and_load_returns_none_when_no_adf_toml() {
328328
let tmp = TempDir::new().unwrap();
329329
fs::create_dir_all(tmp.path().join(".terraphim")).unwrap();
330-
let result = ProjectAdfConfig::discover_and_load(&tmp.path()).unwrap();
330+
let result = ProjectAdfConfig::discover_and_load(tmp.path()).unwrap();
331331
assert!(result.is_none());
332332
}
333333

0 commit comments

Comments
 (0)