mirror of
https://github.com/crate-ci/typos.git
synced 2024-11-22 00:51:11 -05:00
refactor: Prep for winnow 0.6 upgrade
This commit is contained in:
parent
2bf326a3c6
commit
fd7ab4a789
1 changed files with 11 additions and 0 deletions
|
@ -135,6 +135,7 @@ mod parser {
|
||||||
use winnow::prelude::*;
|
use winnow::prelude::*;
|
||||||
use winnow::stream::AsBStr;
|
use winnow::stream::AsBStr;
|
||||||
use winnow::stream::AsChar;
|
use winnow::stream::AsChar;
|
||||||
|
use winnow::stream::Compare;
|
||||||
use winnow::stream::SliceLen;
|
use winnow::stream::SliceLen;
|
||||||
use winnow::stream::Stream;
|
use winnow::stream::Stream;
|
||||||
use winnow::stream::StreamIsPartial;
|
use winnow::stream::StreamIsPartial;
|
||||||
|
@ -142,6 +143,7 @@ mod parser {
|
||||||
|
|
||||||
pub(crate) fn next_identifier<T>(input: &mut T) -> PResult<<T as Stream>::Slice, ()>
|
pub(crate) fn next_identifier<T>(input: &mut T) -> PResult<<T as Stream>::Slice, ()>
|
||||||
where
|
where
|
||||||
|
T: Compare<char>,
|
||||||
T: Stream + StreamIsPartial + PartialEq,
|
T: Stream + StreamIsPartial + PartialEq,
|
||||||
<T as Stream>::Slice: AsBStr + SliceLen + Default,
|
<T as Stream>::Slice: AsBStr + SliceLen + Default,
|
||||||
<T as Stream>::Token: AsChar + Copy,
|
<T as Stream>::Token: AsChar + Copy,
|
||||||
|
@ -169,6 +171,7 @@ mod parser {
|
||||||
|
|
||||||
fn ignore<T>(input: &mut T) -> PResult<<T as Stream>::Slice, ()>
|
fn ignore<T>(input: &mut T) -> PResult<<T as Stream>::Slice, ()>
|
||||||
where
|
where
|
||||||
|
T: Compare<char>,
|
||||||
T: Stream + StreamIsPartial + PartialEq,
|
T: Stream + StreamIsPartial + PartialEq,
|
||||||
<T as Stream>::Slice: AsBStr + SliceLen + Default,
|
<T as Stream>::Slice: AsBStr + SliceLen + Default,
|
||||||
<T as Stream>::Token: AsChar + Copy,
|
<T as Stream>::Token: AsChar + Copy,
|
||||||
|
@ -228,6 +231,7 @@ mod parser {
|
||||||
|
|
||||||
fn ordinal_literal<T>(input: &mut T) -> PResult<<T as Stream>::Slice, ()>
|
fn ordinal_literal<T>(input: &mut T) -> PResult<<T as Stream>::Slice, ()>
|
||||||
where
|
where
|
||||||
|
T: Compare<char>,
|
||||||
T: Stream + StreamIsPartial + PartialEq,
|
T: Stream + StreamIsPartial + PartialEq,
|
||||||
<T as Stream>::Slice: AsBStr + SliceLen + Default,
|
<T as Stream>::Slice: AsBStr + SliceLen + Default,
|
||||||
<T as Stream>::Token: AsChar + Copy,
|
<T as Stream>::Token: AsChar + Copy,
|
||||||
|
@ -262,6 +266,7 @@ mod parser {
|
||||||
|
|
||||||
fn hex_literal<T>(input: &mut T) -> PResult<<T as Stream>::Slice, ()>
|
fn hex_literal<T>(input: &mut T) -> PResult<<T as Stream>::Slice, ()>
|
||||||
where
|
where
|
||||||
|
T: Compare<char>,
|
||||||
T: Stream + StreamIsPartial + PartialEq,
|
T: Stream + StreamIsPartial + PartialEq,
|
||||||
<T as Stream>::Slice: AsBStr + SliceLen + Default,
|
<T as Stream>::Slice: AsBStr + SliceLen + Default,
|
||||||
<T as Stream>::Token: AsChar + Copy,
|
<T as Stream>::Token: AsChar + Copy,
|
||||||
|
@ -275,6 +280,7 @@ mod parser {
|
||||||
|
|
||||||
fn css_color<T>(input: &mut T) -> PResult<<T as Stream>::Slice, ()>
|
fn css_color<T>(input: &mut T) -> PResult<<T as Stream>::Slice, ()>
|
||||||
where
|
where
|
||||||
|
T: Compare<char>,
|
||||||
T: Stream + StreamIsPartial + PartialEq,
|
T: Stream + StreamIsPartial + PartialEq,
|
||||||
<T as Stream>::Slice: AsBStr + SliceLen + Default,
|
<T as Stream>::Slice: AsBStr + SliceLen + Default,
|
||||||
<T as Stream>::Token: AsChar + Copy,
|
<T as Stream>::Token: AsChar + Copy,
|
||||||
|
@ -294,6 +300,7 @@ mod parser {
|
||||||
|
|
||||||
fn uuid_literal<T>(input: &mut T) -> PResult<<T as Stream>::Slice, ()>
|
fn uuid_literal<T>(input: &mut T) -> PResult<<T as Stream>::Slice, ()>
|
||||||
where
|
where
|
||||||
|
T: Compare<char>,
|
||||||
T: Stream + StreamIsPartial + PartialEq,
|
T: Stream + StreamIsPartial + PartialEq,
|
||||||
<T as Stream>::Slice: AsBStr + SliceLen + Default,
|
<T as Stream>::Slice: AsBStr + SliceLen + Default,
|
||||||
<T as Stream>::Token: AsChar + Copy,
|
<T as Stream>::Token: AsChar + Copy,
|
||||||
|
@ -396,6 +403,7 @@ mod parser {
|
||||||
|
|
||||||
fn email_literal<T>(input: &mut T) -> PResult<<T as Stream>::Slice, ()>
|
fn email_literal<T>(input: &mut T) -> PResult<<T as Stream>::Slice, ()>
|
||||||
where
|
where
|
||||||
|
T: Compare<char>,
|
||||||
T: Stream + StreamIsPartial + PartialEq,
|
T: Stream + StreamIsPartial + PartialEq,
|
||||||
<T as Stream>::Slice: AsBStr + SliceLen + Default,
|
<T as Stream>::Slice: AsBStr + SliceLen + Default,
|
||||||
<T as Stream>::Token: AsChar + Copy,
|
<T as Stream>::Token: AsChar + Copy,
|
||||||
|
@ -414,6 +422,7 @@ mod parser {
|
||||||
|
|
||||||
fn url_literal<T>(input: &mut T) -> PResult<<T as Stream>::Slice, ()>
|
fn url_literal<T>(input: &mut T) -> PResult<<T as Stream>::Slice, ()>
|
||||||
where
|
where
|
||||||
|
T: Compare<char>,
|
||||||
T: Stream + StreamIsPartial + PartialEq,
|
T: Stream + StreamIsPartial + PartialEq,
|
||||||
<T as Stream>::Slice: AsBStr + SliceLen + Default,
|
<T as Stream>::Slice: AsBStr + SliceLen + Default,
|
||||||
<T as Stream>::Token: AsChar + Copy,
|
<T as Stream>::Token: AsChar + Copy,
|
||||||
|
@ -443,6 +452,7 @@ mod parser {
|
||||||
|
|
||||||
fn url_userinfo<T>(input: &mut T) -> PResult<<T as Stream>::Slice, ()>
|
fn url_userinfo<T>(input: &mut T) -> PResult<<T as Stream>::Slice, ()>
|
||||||
where
|
where
|
||||||
|
T: Compare<char>,
|
||||||
T: Stream + StreamIsPartial + PartialEq,
|
T: Stream + StreamIsPartial + PartialEq,
|
||||||
<T as Stream>::Slice: AsBStr + SliceLen + Default,
|
<T as Stream>::Slice: AsBStr + SliceLen + Default,
|
||||||
<T as Stream>::Token: AsChar + Copy,
|
<T as Stream>::Token: AsChar + Copy,
|
||||||
|
@ -477,6 +487,7 @@ mod parser {
|
||||||
|
|
||||||
fn printf<T>(input: &mut T) -> PResult<<T as Stream>::Slice, ()>
|
fn printf<T>(input: &mut T) -> PResult<<T as Stream>::Slice, ()>
|
||||||
where
|
where
|
||||||
|
T: Compare<char>,
|
||||||
T: Stream + StreamIsPartial + PartialEq,
|
T: Stream + StreamIsPartial + PartialEq,
|
||||||
<T as Stream>::Slice: AsBStr + SliceLen + Default,
|
<T as Stream>::Slice: AsBStr + SliceLen + Default,
|
||||||
<T as Stream>::Token: AsChar + Copy,
|
<T as Stream>::Token: AsChar + Copy,
|
||||||
|
|
Loading…
Reference in a new issue