Move finish out of the Encoder trait.
This simplifies things, but requires making `CacheEncoder` non-generic.
This commit is contained in:
@@ -210,7 +210,7 @@ impl CodegenResults {
|
||||
encoder.emit_raw_bytes(&RLINK_VERSION.to_be_bytes());
|
||||
encoder.emit_str(RUSTC_VERSION.unwrap());
|
||||
Encodable::encode(codegen_results, &mut encoder);
|
||||
encoder.finish().unwrap()
|
||||
encoder.finish()
|
||||
}
|
||||
|
||||
pub fn deserialize_rlink(data: Vec<u8>) -> Result<Self, String> {
|
||||
|
||||
Reference in New Issue
Block a user