Skip to content

Commit 67dcf92

Browse files
committed
Release 0.9.0
1 parent 2c12b97 commit 67dcf92

File tree

2 files changed

+8
-8
lines changed

2 files changed

+8
-8
lines changed

Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[package]
22
name = "pom"
3-
version = "0.8.1"
3+
version = "0.9.0"
44
authors = ["Junfeng Liu <[email protected]>"]
55
homepage = "https://github.com/J-F-Liu/pom"
66
documentation = "https://docs.rs/crate/pom/"

src/parser.rs

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -229,9 +229,9 @@ pub fn sym<'a, I>(t: I) -> Parser<'a, I, I>
229229
}
230230

231231
/// 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>>
233233
where I: Copy + PartialEq + Display + 'static,
234-
T: Train<I>
234+
T: Train<I> + ?Sized
235235
{
236236
Parser::new(move |input: &mut Input<I>| {
237237
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>)
294294
}
295295

296296
/// 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>
298298
where I: Copy + PartialEq + Display + Debug + 'static,
299-
T: Train<I>
299+
T: Train<I> + ?Sized
300300
{
301301
Parser::new(move |input: &mut Input<I>| {
302302
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>
317317
}
318318

319319
/// 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>
321321
where I: Copy + PartialEq + Display + Debug + 'static,
322-
T: Train<I>
322+
T: Train<I> + ?Sized
323323
{
324324
Parser::new(move |input: &mut Input<I>| {
325325
if let Some(s) = input.current() {
@@ -786,4 +786,4 @@ mod tests {
786786
assert!(output.is_err())
787787
}
788788
}
789-
}
789+
}

0 commit comments

Comments
 (0)