mirror of
https://github.com/simonask/libyaml-safer
synced 2024-11-22 03:13:10 +00:00
Fix new warnings on Nightly
This commit is contained in:
parent
092bf829a7
commit
abe9316a63
5 changed files with 15 additions and 9 deletions
|
@ -1,7 +1,5 @@
|
|||
use std::collections::VecDeque;
|
||||
|
||||
use alloc::string::String;
|
||||
|
||||
use crate::macros::{
|
||||
is_alpha, is_ascii, is_blank, is_blankz, is_bom, is_break, is_breakz, is_printable, is_space,
|
||||
};
|
||||
|
|
|
@ -167,8 +167,6 @@ pub enum MappingStyle {
|
|||
|
||||
#[cfg(test)]
|
||||
mod tests {
|
||||
use alloc::vec::Vec;
|
||||
|
||||
use super::*;
|
||||
|
||||
#[test]
|
||||
|
|
|
@ -215,3 +215,18 @@ macro_rules! IS_BLANKZ {
|
|||
IS_BLANKZ_AT!($string, 0)
|
||||
};
|
||||
}
|
||||
|
||||
#[cfg(test)]
|
||||
mod tests {
|
||||
use super::*;
|
||||
|
||||
#[test]
|
||||
fn printable() {
|
||||
for ch in "🎉".chars() {
|
||||
assert!(is_printable(ch));
|
||||
}
|
||||
for ch in "\u{1f389}".chars() {
|
||||
assert!(is_printable(ch));
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
@ -1,6 +1,3 @@
|
|||
use alloc::string::String;
|
||||
use alloc::{vec, vec::Vec};
|
||||
|
||||
use crate::scanner::Scanner;
|
||||
use crate::{
|
||||
Encoding, Error, Event, EventData, MappingStyle, Mark, Result, ScalarStyle, SequenceStyle,
|
||||
|
|
|
@ -1,7 +1,5 @@
|
|||
use std::collections::VecDeque;
|
||||
|
||||
use alloc::string::String;
|
||||
|
||||
use crate::macros::{is_blankz, is_break};
|
||||
use crate::reader::yaml_parser_update_buffer;
|
||||
use crate::{
|
||||
|
|
Loading…
Reference in a new issue