chore(deps): update rust crate yap to 0.12 - autoclosed #50
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This PR contains the following updates:
0.11
->0.12
Release Notes
jsdw/yap (yap)
v0.12.0
Compare Source
From #13:
Tokens::parse
method, which attempt to parse the remaining tokens into some type viaFromStr
(andstr::parse
). This requires a buffer type (oftenString
) to be provided asthe second generic arg, and may use this to buffer tokens prior to parsing if necessary.
Tokens::parse
to be optimised in cases likeStrToken
,so that eg calling
toks.slice(from, to).parse::<u16,String>
forStrTokens
and similar won'tallocate.
Tokens::take
for takingn
tokens (can be useful in conjunction withparse
, above).Tokens::eof
,Tokens::collect
andTokens::consume
for finding an EOF (None
), collectingtokens and consuming all tokens.
Tokens::into_iter
, for when you need to work around lifetime issues withTokens::as_iter
.Tokens::tokens_while
toTokens::take_while
, andTokens::skip_tokens_while
toTokens::skip_while
; we no longer have to worry about conflicts withIterator
methods.Tokens::{surrounded, optional, optional_err}
now accept anFnOnce
instead of anFnMut
,allowing a little more flexibility in what is given.
Iterator
now returns something implementingTokens
instead (you can still call.as_iter()
to then get a standardIterator
from this).A shoutout to @EasyOakland for their contributions in this!
From #13:
yap::chars
module which contains some helper functions (likeparse_f64
)specific to
impl Tokens<Item=char>
.yap::one_of!
andTokens::optional
; the output from expressions passed toeither of these can now be
Option<T>
orbool
, or more specifically anything implementingyap::one_of::IsMatch
.Configuration
📅 Schedule: Branch creation - "before 5am on the first day of the month" (UTC), Automerge - At any time (no schedule defined).
🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.
♻ Rebasing: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.
🔕 Ignore: Close this PR and you won't be reminded about this update again.
This PR has been generated by Mend Renovate. View repository job log here.