Skip to content

Commit

Permalink
refactor: handle using attribute without value in async
Browse files Browse the repository at this point in the history
Signed-off-by: Jérémie Drouet <jeremie.drouet@gmail.com>
  • Loading branch information
jdrouet committed Nov 4, 2024
1 parent 749cfd1 commit b955b03
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/mrml-core/src/prelude/parser/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -292,12 +292,12 @@ impl AsyncMrmlParser {
}

#[cfg(feature = "async")]
impl ParseAttributes<Map<String, String>> for AsyncMrmlParser {
impl ParseAttributes<Map<String, Option<String>>> for AsyncMrmlParser {
fn parse_attributes(
&self,
cursor: &mut MrmlCursor<'_>,
_tag: &StrSpan<'_>,
) -> Result<Map<String, String>, Error> {
) -> Result<Map<String, Option<String>>, Error> {
parse_attributes_map(cursor)
}
}
Expand Down

0 comments on commit b955b03

Please sign in to comment.