Re-enable clippy warnings.

This commit is contained in:
Ethiraric 2024-03-19 18:18:59 +01:00
parent c1145fc814
commit 9133bb0a34
3 changed files with 12 additions and 3 deletions

View file

@ -111,7 +111,7 @@ pub(crate) fn is_tag_char(c: char) -> bool {
} }
/// Check if the string can be expressed a valid literal block scalar. /// 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 /// ```ignore
/// #x9 | #xA | [#x20-#x7E] /* 8 bit */ /// #x9 | #xA | [#x20-#x7E] /* 8 bit */
/// | #x85 | [#xA0-#xD7FF] | [#xE000-#xFFFD] /* 16 bit */ /// | #x85 | [#xA0-#xD7FF] | [#xE000-#xFFFD] /* 16 bit */

View file

@ -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; extern crate hashlink;
pub(crate) mod char_traits; pub(crate) mod char_traits;

View file

@ -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 /// For example, to read a YAML file while ignoring Unicode decoding errors you can set the
/// `encoding_trap` to `encoding::DecoderTrap::Ignore`. /// `encoding_trap` to `encoding::DecoderTrap::Ignore`.
/// ```rust /// ```rust