@@ -229,9 +229,9 @@ pub fn sym<'a, I>(t: I) -> Parser<'a, I, I>
229
229
}
230
230
231
231
/// Success when sequence of symbols matches current input.
232
- pub fn seq < ' a , I , T : ? Sized > ( train : & ' static T ) -> Parser < ' a , I , Vec < I > >
232
+ pub fn seq < ' a , I , T > ( train : & ' static T ) -> Parser < ' a , I , Vec < I > >
233
233
where I : Copy + PartialEq + Display + ' static ,
234
- T : Train < I >
234
+ T : Train < I > + ? Sized
235
235
{
236
236
Parser :: new ( move |input : & mut Input < I > | {
237
237
let tag = train. knots ( ) ;
@@ -294,9 +294,9 @@ pub fn list<'a, I, O, U>(parser: Parser<'a, I, O>, separator: Parser<'a, I, U>)
294
294
}
295
295
296
296
/// Success when current input symbol is one of the set.
297
- pub fn one_of < ' a , I , T : ? Sized > ( train : & ' static T ) -> Parser < ' a , I , I >
297
+ pub fn one_of < ' a , I , T > ( train : & ' static T ) -> Parser < ' a , I , I >
298
298
where I : Copy + PartialEq + Display + Debug + ' static ,
299
- T : Train < I >
299
+ T : Train < I > + ? Sized
300
300
{
301
301
Parser :: new ( move |input : & mut Input < I > | {
302
302
if let Some ( s) = input. current ( ) {
@@ -317,9 +317,9 @@ pub fn one_of<'a, I, T: ?Sized>(train: &'static T) -> Parser<'a, I, I>
317
317
}
318
318
319
319
/// Success when current input symbol is none of the set.
320
- pub fn none_of < ' a , I , T : ? Sized > ( train : & ' static T ) -> Parser < ' a , I , I >
320
+ pub fn none_of < ' a , I , T > ( train : & ' static T ) -> Parser < ' a , I , I >
321
321
where I : Copy + PartialEq + Display + Debug + ' static ,
322
- T : Train < I >
322
+ T : Train < I > + ? Sized
323
323
{
324
324
Parser :: new ( move |input : & mut Input < I > | {
325
325
if let Some ( s) = input. current ( ) {
@@ -786,4 +786,4 @@ mod tests {
786
786
assert ! ( output. is_err( ) )
787
787
}
788
788
}
789
- }
789
+ }
0 commit comments