simplify space parser
This commit is contained in:
parent
f690d3d286
commit
20093d7683
1 changed files with 2 additions and 2 deletions
|
@ -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(¬es))),
|
||||
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)
|
||||
|
|
Loading…
Reference in a new issue