Skip to content

Commit

Permalink
Replace deprecated success with empty.value()
Browse files Browse the repository at this point in the history
  • Loading branch information
nwagner84 committed Jan 31, 2024
1 parent a365e36 commit 64f1167
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ sha2 = "0.10"
strsim = "0.11"
thiserror = "1.0"
toml = "0.8"
winnow = "0.5"
winnow = "0.5.35"

[profile.release]
codegen-units = 1
Expand Down
4 changes: 2 additions & 2 deletions crates/pica-matcher/src/occurrence_matcher.rs
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ use std::str::FromStr;
use bstr::{BStr, ByteSlice};
use pica_record::parser::parse_occurrence_digits;
use pica_record::{Occurrence, OccurrenceRef};
use winnow::combinator::{alt, preceded, separated_pair, success};
use winnow::combinator::{alt, empty, preceded, separated_pair};
use winnow::{PResult, Parser};

use crate::ParseMatcherError;
Expand Down Expand Up @@ -126,7 +126,7 @@ pub fn parse_occurrence_matcher(
'*'.value(OccurrenceMatcher::Any),
)),
),
success(OccurrenceMatcher::None),
empty.value(OccurrenceMatcher::None),
))
.parse_next(i)
}
Expand Down

0 comments on commit 64f1167

Please sign in to comment.