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;
|
extern crate serde;
|
||||||
|
|
||||||
#[macro_use]
|
#[macro_use]
|
||||||
#[cfg(all(test, feature = "use_std"))]
|
#[cfg(test)]
|
||||||
extern crate serde_derive;
|
extern crate serde_derive;
|
||||||
|
|
||||||
extern crate ssmarshal;
|
extern crate ssmarshal;
|
||||||
|
@ -438,7 +438,7 @@ pub fn decode_to_slice(e: &Encoded, dest: &mut [u8])
|
||||||
#[cfg(feature = "trace")] {
|
#[cfg(feature = "trace")] {
|
||||||
println!("framed: body = {:?}\n\
|
println!("framed: body = {:?}\n\
|
||||||
framed: decoded = {:?}",
|
framed: decoded = {:?}",
|
||||||
body, dest[0..len]);
|
body, &dest[0..len]);
|
||||||
}
|
}
|
||||||
|
|
||||||
Ok(len)
|
Ok(len)
|
||||||
|
|
|
@ -335,7 +335,9 @@ mod tests {
|
||||||
|
|
||||||
a: [1, 2, 3],
|
a: [1, 2, 3],
|
||||||
};
|
};
|
||||||
println!("Test value: {:#?}", v);
|
#[cfg(feature = "use_std")] {
|
||||||
|
println!("Test value: {:#?}", v);
|
||||||
|
}
|
||||||
v
|
v
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue