diff --git a/parser/src/char_traits.rs b/parser/src/char_traits.rs index 5965cc4..a48d4db 100644 --- a/parser/src/char_traits.rs +++ b/parser/src/char_traits.rs @@ -111,9 +111,9 @@ pub(crate) fn is_tag_char(c: char) -> bool { } /// Check if the string can be expressed a valid literal block scalar. -/// The YAML spec supports all of the following in block literals except #xFEFF: +/// The YAML spec supports all of the following in block literals except `#xFEFF`: /// ```ignore -/// #x9 | #xA | [#x20-#x7E] /* 8 bit */ +/// #x9 | #xA | [#x20-#x7E] /* 8 bit */ /// | #x85 | [#xA0-#xD7FF] | [#xE000-#xFFFD] /* 16 bit */ /// | [#x10000-#x10FFFF] /* 32 bit */ /// ``` diff --git a/parser/src/lib.rs b/parser/src/lib.rs index e95e452..4428f5a 100644 --- a/parser/src/lib.rs +++ b/parser/src/lib.rs @@ -30,6 +30,15 @@ //! //! ``` +#![warn(clippy::pedantic)] +#![allow( + clippy::match_same_arms, + clippy::should_implement_trait, + clippy::missing_errors_doc, + clippy::missing_panics_doc, + clippy::redundant_else +)] + extern crate hashlink; pub(crate) mod char_traits; diff --git a/parser/src/yaml.rs b/parser/src/yaml.rs index 3e2298a..c1cecd7 100644 --- a/parser/src/yaml.rs +++ b/parser/src/yaml.rs @@ -229,7 +229,7 @@ impl YamlLoader { } } -/// YamlDecoder is a YamlLoader builder that allows you to supply your own encoding error trap. +/// `YamlDecoder` is a `YamlLoader` builder that allows you to supply your own encoding error trap. /// For example, to read a YAML file while ignoring Unicode decoding errors you can set the /// `encoding_trap` to `encoding::DecoderTrap::Ignore`. /// ```rust