We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 88fda3f commit 984460dCopy full SHA for 984460d
resources/dscecho/src/main.rs
@@ -40,11 +40,9 @@ fn main() {
40
}
41
},
42
Output::Object(ref mut obj) => {
43
- *obj = redact(&Value::Object(obj.clone()))
+ obj.clone_from(redact(&Value::Object(obj.clone()))
44
.as_object()
45
- .expect("Expected redact() to return a Value::Object")
46
- .clone();
47
- },
+ .expect("Expected redact() to return a Value::Object")); },
48
_ => {}
49
50
0 commit comments