Fix a few compile errors.
This commit is contained in:
parent
4c5ef71dff
commit
6a1ef6d6cb
2 changed files with 5 additions and 3 deletions
|
@ -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)
|
||||
|
|
|
@ -335,7 +335,9 @@ mod tests {
|
|||
|
||||
a: [1, 2, 3],
|
||||
};
|
||||
#[cfg(feature = "use_std")] {
|
||||
println!("Test value: {:#?}", v);
|
||||
}
|
||||
v
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue