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 7918c7e commit 5e3042dCopy full SHA for 5e3042d
src/cargo/core/shell.rs
@@ -400,7 +400,7 @@ impl Shell {
400
401
pub fn print_json<T: serde::ser::Serialize>(&mut self, obj: &T) -> CargoResult<()> {
402
// Path may fail to serialize to JSON ...
403
- let encoded = serde_json::to_string(&obj)?;
+ let encoded = serde_json::to_string(obj)?;
404
// ... but don't fail due to a closed pipe.
405
drop(writeln!(self.out(), "{}", encoded));
406
Ok(())
0 commit comments