mirror of
https://github.com/cubixle/radius-rs.git
synced 2026-04-24 23:04:43 +01:00
Fix clippy warnings
This commit is contained in:
@@ -60,7 +60,7 @@ impl Attributes {
|
||||
.iter()
|
||||
.filter_map(|avp| {
|
||||
if avp.typ == typ {
|
||||
Some(avp);
|
||||
return Some(avp);
|
||||
}
|
||||
None
|
||||
})
|
||||
|
||||
@@ -121,11 +121,7 @@ fn generate_values_code(
|
||||
}
|
||||
}
|
||||
|
||||
fn generate_values_for_attribute_code(
|
||||
w: &mut BufWriter<File>,
|
||||
attr: &String,
|
||||
values: &[RadiusValue],
|
||||
) {
|
||||
fn generate_values_for_attribute_code(w: &mut BufWriter<File>, attr: &str, values: &[RadiusValue]) {
|
||||
let type_name = attr.to_pascal_case();
|
||||
w.write_all(
|
||||
format!(
|
||||
|
||||
Reference in New Issue
Block a user