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
|
@ -2194,7 +2194,7 @@ pub fn encode_metadata(tcx: TyCtxt<'_>) -> EncodedMetadata {
|
|||
}
|
||||
|
||||
fn encode_metadata_impl(tcx: TyCtxt<'_>) -> EncodedMetadata {
|
||||
let mut encoder = opaque::Encoder::new(vec![]);
|
||||
let mut encoder = opaque::Encoder::new();
|
||||
encoder.emit_raw_bytes(METADATA_HEADER).unwrap();
|
||||
|
||||
// Will be filled with the root position after encoding everything.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue