Re-enable clippy warnings.
This commit is contained in:
parent
cccf769b1c
commit
011e81ee85
3 changed files with 12 additions and 3 deletions
|
@ -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.
|
||||
/// 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 */
|
||||
/// | #x85 | [#xA0-#xD7FF] | [#xE000-#xFFFD] /* 16 bit */
|
||||
|
|
|
@ -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;
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue