simplify space parser

This commit is contained in:
Ponj 2024-11-04 18:01:56 -05:00
parent f690d3d286
commit 20093d7683
Signed by: p6nj
GPG key ID: 6FED68D87C479A59

View file

@ -126,8 +126,8 @@ impl<'de> Deserialize<'de> for Atoms {
deserializer.deserialize_struct("NotesSheet", FIELDS, NotesSheetVisitor)?;
let x = all_consuming(terminated(
many0(preceded(many0(one_of(" \t\r")), flat_atom_parser(&notes))),
many0(alt((char('\t'), char(' '), char('\n'), char('\r')))),
))(&sheet)
many0(one_of(" \t\r")),
))(dbg!(&sheet))
.map_err(nom_err_message)
.map_err(AtomsSerializeError::Parsing)
.map_err(de::Error::custom)