Remove an unnecessary encoder operation.

This commit is contained in:
Nicholas Nethercote 2022-06-07 11:08:10 +10:00
parent 7fe2c4b00d
commit 92b1ab8d57

View File

@ -209,8 +209,6 @@ impl CodegenResults {
// Encoder's inner representation of `u32`.
encoder.emit_raw_bytes(&RLINK_VERSION.to_be_bytes()).unwrap();
encoder.emit_str(RUSTC_VERSION.unwrap()).unwrap();
let mut encoder = rustc_serialize::opaque::Encoder::new(encoder.into_inner());
rustc_serialize::Encodable::encode(codegen_results, &mut encoder).unwrap();
encoder.into_inner()
}