Skip to content

Commit

Permalink
Exclude namespace from tag name when comparing against field names
Browse files Browse the repository at this point in the history
  • Loading branch information
leftmostcat committed Jan 10, 2024
1 parent de61fa1 commit a79f473
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/de/map.rs
Original file line number Diff line number Diff line change
Expand Up @@ -789,7 +789,7 @@ fn not_in(
start: &BytesStart,
decoder: Decoder,
) -> Result<bool, DeError> {
let tag = decoder.decode(start.name().into_inner())?;
let tag = decoder.decode(start.local_name().into_inner())?;

Ok(fields.iter().all(|&field| field != tag.as_ref()))
}
Expand Down

0 comments on commit a79f473

Please sign in to comment.