mirror of https://git.sr.ht/~stygianentity/bincode
ignore instead of no_run
This commit is contained in:
parent
7fba81da1e
commit
9824d8061c
|
|
@ -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.
|
||||||
///
|
///
|
||||||
/// ```rust,no_run
|
/// ```rust,ignore
|
||||||
/// let dr = bincode::rustc_serialize::DecoderReader::new(&mut some_reader, SizeLimit::Infinite);
|
/// let dr = bincode::rustc_serialize::DecoderReader::new(&mut some_reader, SizeLimit::Infinite);
|
||||||
/// let result: T = Decodable::decode(&mut dr);
|
/// let result: T = Decodable::decode(&mut dr);
|
||||||
/// let bytes_red = dr.bytes_read();
|
/// let bytes_red = dr.bytes_read();
|
||||||
|
|
|
||||||
|
|
@ -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.
|
||||||
///
|
///
|
||||||
/// ```rust,no_run
|
/// ```rust,ignore
|
||||||
/// let d = Deserializer::new(&mut some_reader, SizeLimit::new());
|
/// let d = Deserializer::new(&mut some_reader, SizeLimit::new());
|
||||||
/// serde::Deserialize::deserialize(&mut deserializer);
|
/// serde::Deserialize::deserialize(&mut deserializer);
|
||||||
/// let bytes_read = d.bytes_read();
|
/// let bytes_read = d.bytes_read();
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue