mirror of
https://github.com/rust-lang/rust.git
synced 2025-01-30 16:43:41 +00:00
Remove an unnecessary encoder operation.
This commit is contained in:
parent
7fe2c4b00d
commit
92b1ab8d57
@ -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()
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user