fix(workspace): clear strict lint and test debt
This commit is contained in:
@@ -722,10 +722,9 @@ fn component_contract_errors(
|
||||
let implemented = component_handler_names(items);
|
||||
let mut errors = Vec::new();
|
||||
|
||||
if component.is_some() && !implemented.is_empty() && generated.is_empty() {
|
||||
if let Some(component) = component.filter(|_| !implemented.is_empty() && generated.is_empty()) {
|
||||
errors.push(format!(
|
||||
"#[hemx::component({:?})] does not match any generated handles; check the .heml file name or component name",
|
||||
component.unwrap()
|
||||
"#[hemx::component({component:?})] does not match any generated handles; check the .heml file name or component name"
|
||||
));
|
||||
}
|
||||
|
||||
@@ -787,7 +786,8 @@ fn duplicate_names(names: &[String]) -> Vec<String> {
|
||||
}
|
||||
counts
|
||||
.into_iter()
|
||||
.filter_map(|(name, count)| (count > 1).then(|| name.to_owned()))
|
||||
.filter(|(_, count)| *count > 1)
|
||||
.map(|(name, _)| name.to_owned())
|
||||
.collect()
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user