🎨 🚨 cargo ftm and deprecated missing_doc_code_examples

This commit is contained in:
Guillaume 2021-08-03 23:47:19 +02:00 committed by Geoffroy Couprie
parent d3323ae948
commit 0ddf113f68
2 changed files with 12 additions and 12 deletions

View File

@ -46,7 +46,7 @@ impl<I, O, E> Finish<I, O, E> for IResult<I, O, E> {
/// Contains information on needed data if a parser returned `Incomplete`
#[derive(Debug, PartialEq, Eq, Clone, Copy)]
#[allow(missing_doc_code_examples)]
#[allow(rustdoc::missing_doc_code_examples)]
pub enum Needed {
/// Needs more data, but we do not know how much
Unknown,
@ -93,7 +93,7 @@ impl Needed {
/// to try other parsers, you were already in the right branch, so the data is invalid
///
#[derive(Debug, Clone, PartialEq)]
#[allow(missing_doc_code_examples)]
#[allow(rustdoc::missing_doc_code_examples)]
pub enum Err<E> {
/// There was not enough data
Incomplete(Needed),
@ -299,7 +299,7 @@ impl<'a, I, O, E> Parser<I, O, E> for Box<dyn Parser<I, O, E> + 'a> {
}
/// Implementation of `Parser::map`
#[allow(missing_doc_code_examples)]
#[allow(rustdoc::missing_doc_code_examples)]
pub struct Map<F, G, O1> {
f: F,
g: G,
@ -316,7 +316,7 @@ impl<'a, I, O1, O2, E, F: Parser<I, O1, E>, G: Fn(O1) -> O2> Parser<I, O2, E> fo
}
/// Implementation of `Parser::flat_map`
#[allow(missing_doc_code_examples)]
#[allow(rustdoc::missing_doc_code_examples)]
pub struct FlatMap<F, G, O1> {
f: F,
g: G,
@ -333,7 +333,7 @@ impl<'a, I, O1, O2, E, F: Parser<I, O1, E>, G: Fn(O1) -> H, H: Parser<I, O2, E>>
}
/// Implementation of `Parser::and_then`
#[allow(missing_doc_code_examples)]
#[allow(rustdoc::missing_doc_code_examples)]
pub struct AndThen<F, G, O1> {
f: F,
g: G,
@ -351,7 +351,7 @@ impl<'a, I, O1, O2, E, F: Parser<I, O1, E>, G: Parser<O1, O2, E>> Parser<I, O2,
}
/// Implementation of `Parser::and`
#[allow(missing_doc_code_examples)]
#[allow(rustdoc::missing_doc_code_examples)]
pub struct And<F, G> {
f: F,
g: G,
@ -368,7 +368,7 @@ impl<'a, I, O1, O2, E, F: Parser<I, O1, E>, G: Parser<I, O2, E>> Parser<I, (O1,
}
/// Implementation of `Parser::or`
#[allow(missing_doc_code_examples)]
#[allow(rustdoc::missing_doc_code_examples)]
pub struct Or<F, G> {
f: F,
g: G,
@ -389,7 +389,7 @@ impl<'a, I: Clone, O, E: crate::error::ParseError<I>, F: Parser<I, O, E>, G: Par
}
/// Implementation of `Parser::into`
#[allow(missing_doc_code_examples)]
#[allow(rustdoc::missing_doc_code_examples)]
pub struct Into<F, O1, O2: From<O1>, E1, E2: From<E1>> {
f: F,
phantom_out1: core::marker::PhantomData<O1>,

View File

@ -379,7 +379,7 @@
#![cfg_attr(feature = "docsrs", feature(doc_cfg))]
#![cfg_attr(feature = "docsrs", feature(extended_key_value_attributes))]
#![deny(missing_docs)]
#![warn(missing_doc_code_examples)]
#![warn(rustdoc::missing_doc_code_examples)]
#[cfg(feature = "alloc")]
#[macro_use]
@ -397,12 +397,12 @@ doc_comment::doctest!("../README.md");
/// Lib module to re-export everything needed from `std` or `core`/`alloc`. This is how `serde` does
/// it, albeit there it is not public.
#[allow(missing_doc_code_examples)]
#[allow(rustdoc::missing_doc_code_examples)]
pub mod lib {
/// `std` facade allowing `std`/`core` to be interchangeable. Reexports `alloc` crate optionally,
/// as well as `core` or `std`
#[cfg(not(feature = "std"))]
#[allow(missing_doc_code_examples)]
#[allow(rustdoc::missing_doc_code_examples)]
/// internal std exports for no_std compatibility
pub mod std {
#[doc(hidden)]
@ -424,7 +424,7 @@ pub mod lib {
}
#[cfg(feature = "std")]
#[allow(missing_doc_code_examples)]
#[allow(rustdoc::missing_doc_code_examples)]
/// internal std exports for no_std compatibility
pub mod std {
#[doc(hidden)]