Skip to content

Commit 984460d

Browse files
committed
fix clippy
1 parent 88fda3f commit 984460d

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

resources/dscecho/src/main.rs

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -40,11 +40,9 @@ fn main() {
4040
}
4141
},
4242
Output::Object(ref mut obj) => {
43-
*obj = redact(&Value::Object(obj.clone()))
43+
obj.clone_from(redact(&Value::Object(obj.clone()))
4444
.as_object()
45-
.expect("Expected redact() to return a Value::Object")
46-
.clone();
47-
},
45+
.expect("Expected redact() to return a Value::Object")); },
4846
_ => {}
4947
}
5048
}

0 commit comments

Comments
 (0)