We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e115792 commit 3c4c199Copy full SHA for 3c4c199
src/libserialize/opaque.rs
@@ -335,7 +335,6 @@ impl<'a> serialize::Decoder for Decoder<'a> {
335
#[cfg(test)]
336
mod tests {
337
use serialize::{Encodable, Decodable};
338
- use std::io::Cursor;
339
use std::fmt::Debug;
340
use super::{Encoder, Decoder};
341
@@ -364,7 +363,7 @@ mod tests {
364
363
365
366
fn check_round_trip<T: Encodable + Decodable + PartialEq + Debug>(values: Vec<T>) {
367
- let mut encoder = Encoder::new(&mut cursor);
+ let mut encoder = Encoder::new(Vec::new());
368
369
for value in &values {
370
Encodable::encode(&value, &mut encoder).unwrap();
0 commit comments