1
Fork 0

Fix a few compile errors.

This commit is contained in:
Alex Helfet 2017-12-29 01:26:28 +00:00
parent 4c5ef71dff
commit 6a1ef6d6cb
2 changed files with 5 additions and 3 deletions

View file

@ -245,7 +245,7 @@ extern crate ref_slice;
extern crate serde;
#[macro_use]
#[cfg(all(test, feature = "use_std"))]
#[cfg(test)]
extern crate serde_derive;
extern crate ssmarshal;
@ -438,7 +438,7 @@ pub fn decode_to_slice(e: &Encoded, dest: &mut [u8])
#[cfg(feature = "trace")] {
println!("framed: body = {:?}\n\
framed: decoded = {:?}",
body, dest[0..len]);
body, &dest[0..len]);
}
Ok(len)

View file

@ -335,7 +335,9 @@ mod tests {
a: [1, 2, 3],
};
println!("Test value: {:#?}", v);
#[cfg(feature = "use_std")] {
println!("Test value: {:#?}", v);
}
v
}