-
Notifications
You must be signed in to change notification settings - Fork 805
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
make many extend into other collections that Vec #1621
Changes from all commits
5a7b6c4
59d347a
5807d79
31936ee
51c4e03
84615ac
ac39827
e96f9aa
0c483b3
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -487,11 +487,13 @@ mod test { | |
#[test] | ||
#[cfg(feature = "alloc")] | ||
fn recognize_is_a() { | ||
use crate::lib::std::vec::Vec; | ||
|
||
let a = "aabbab"; | ||
let b = "ababcd"; | ||
|
||
fn f(i: &str) -> IResult<&str, &str> { | ||
recognize(many(1.., alt((tag("a"), tag("b")))))(i) | ||
recognize::<_, Vec<&str>, _, _>(many(1.., alt((tag("a"), tag("b")))))(i) | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I've been going back and forth on this idea partly because of type inference issues when
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. It makes sense that there would be inference issues in the tests calling The example pointing towards |
||
} | ||
|
||
assert_eq!(f(a), Ok((&a[6..], a))); | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
How come this
into_iter().collect()
was left in?There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I missed it, fixed in 4c6e45e