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