Skip to content

Commit 44836f2

Browse files
committed
fix clippy
1 parent 6da122a commit 44836f2

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

dsc_lib/src/dscresources/dscresource.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -517,7 +517,7 @@ pub fn redact(value: &Value) -> Value {
517517
}
518518

519519
if let Some(array) = value.as_array() {
520-
let new_array: Vec<Value> = array.iter().map(|val| redact(val)).collect();
520+
let new_array: Vec<Value> = array.iter().map(redact).collect();
521521
return Value::Array(new_array);
522522
}
523523

@@ -557,7 +557,7 @@ pub fn get_diff(expected: &Value, actual: &Value) -> Vec<String> {
557557
}
558558

559559
for (key, value) in &*map {
560-
if is_secure_value(&value) {
560+
if is_secure_value(value) {
561561
// skip secure values as they are not comparable
562562
continue;
563563
}

0 commit comments

Comments
 (0)