diff --git a/src/cargo/core/shell.rs b/src/cargo/core/shell.rs index 55d897b1bf8..ccd2783e57b 100644 --- a/src/cargo/core/shell.rs +++ b/src/cargo/core/shell.rs @@ -400,7 +400,7 @@ impl Shell { pub fn print_json(&mut self, obj: &T) -> CargoResult<()> { // Path may fail to serialize to JSON ... - let encoded = serde_json::to_string(&obj)?; + let encoded = serde_json::to_string(obj)?; // ... but don't fail due to a closed pipe. drop(writeln!(self.out(), "{}", encoded)); Ok(())