fix: remove unused assignment and import warnings in tests
This commit is contained in:
@@ -1,6 +1,6 @@
|
||||
use archlens_domain::{
|
||||
BoundaryRule, CodeElement, CodeElementKind, CodeGraph, FilePath, ModuleName, Relationship,
|
||||
RelationshipKind, RuleViolation, check_boundary_rules,
|
||||
RelationshipKind, check_boundary_rules,
|
||||
};
|
||||
|
||||
fn make_element(name: &str, module: &str) -> CodeElement {
|
||||
|
||||
@@ -181,10 +181,7 @@ fn qualify_disambiguates_target_by_source_module() {
|
||||
rel = rel.with_source_file(
|
||||
archlens_domain::FilePath::new("src/commons/global_audience.rs").unwrap(),
|
||||
);
|
||||
// Make GlobalAudienceDefinition's element file match
|
||||
let mut gad = make_element("GlobalAudienceDefinition", Some("Commons"));
|
||||
// rebuild with matching file_path
|
||||
gad = CodeElement::new(
|
||||
let gad = CodeElement::new(
|
||||
"GlobalAudienceDefinition",
|
||||
archlens_domain::CodeElementKind::Class,
|
||||
archlens_domain::FilePath::new("src/commons/global_audience.rs").unwrap(),
|
||||
|
||||
Reference in New Issue
Block a user