Don't pass in a vector to Encoder::new
.
It's not necessary.
This commit is contained in:
parent
92b1ab8d57
commit
582b9cbc45
4 changed files with 5 additions and 5 deletions
|
@ -203,7 +203,7 @@ const RUSTC_VERSION: Option<&str> = option_env!("CFG_VERSION");
|
|||
|
||||
impl CodegenResults {
|
||||
pub fn serialize_rlink(codegen_results: &CodegenResults) -> Vec<u8> {
|
||||
let mut encoder = opaque::Encoder::new(vec![]);
|
||||
let mut encoder = opaque::Encoder::new();
|
||||
encoder.emit_raw_bytes(RLINK_MAGIC).unwrap();
|
||||
// `emit_raw_bytes` is used to make sure that the version representation does not depend on
|
||||
// Encoder's inner representation of `u32`.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue