Skip to content

Commit

Permalink
Replace deprecated recognize function
Browse files Browse the repository at this point in the history
Signed-off-by: Nico Wagner <[email protected]>
  • Loading branch information
nwagner84 committed Aug 6, 2024
1 parent f4821b3 commit 83cb6b4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion crates/pica-record/src/tag.rs
Original file line number Diff line number Diff line change
Expand Up @@ -123,7 +123,7 @@ pub fn parse_tag<'a>(i: &mut &'a [u8]) -> PResult<TagRef<'a>> {
one_of(|c: u8| c.is_ascii_digit()),
one_of(|c: u8| c.is_ascii_uppercase() || c == b'@'),
)
.recognize()
.take()
.map(|tag| TagRef(ByteSlice::as_bstr(tag)))
.parse_next(i)
}
Expand Down

0 comments on commit 83cb6b4

Please sign in to comment.