mirror of https://git.sr.ht/~stygianentity/bincode
no run on tests
This commit is contained in:
parent
6d6717ebdf
commit
13d9e30813
|
|
@ -101,7 +101,7 @@ impl From<IoError> for DecodingError {
|
||||||
/// This struct should rarely be used.
|
/// This struct should rarely be used.
|
||||||
/// In most cases, prefer the `decode_from` function.
|
/// In most cases, prefer the `decode_from` function.
|
||||||
///
|
///
|
||||||
/// ```no_run
|
/// ```rust,no_run
|
||||||
/// let file = ...
|
/// let file = ...
|
||||||
/// let dr = bincode::rustc_serialize::DecoderReader::new(&mut file, SizeLimit::Infinite);
|
/// let dr = bincode::rustc_serialize::DecoderReader::new(&mut file, SizeLimit::Infinite);
|
||||||
/// let result: T = Decodable::decode(&mut dr);
|
/// let result: T = Decodable::decode(&mut dr);
|
||||||
|
|
|
||||||
|
|
@ -155,7 +155,7 @@ pub type DeserializeResult<T> = Result<T, DeserializeError>;
|
||||||
/// This struct should rarely be used.
|
/// This struct should rarely be used.
|
||||||
/// In most cases, prefer the `decode_from` function.
|
/// In most cases, prefer the `decode_from` function.
|
||||||
///
|
///
|
||||||
/// ```no_run
|
/// ```rust,no_run
|
||||||
/// let file = ...
|
/// let file = ...
|
||||||
/// let d = Deserializer::new(&mut file, SizeLimit::new());
|
/// let d = Deserializer::new(&mut file, SizeLimit::new());
|
||||||
/// serde::Deserialize::deserialize(&mut deserializer);
|
/// serde::Deserialize::deserialize(&mut deserializer);
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue