-
Notifications
You must be signed in to change notification settings - Fork 39
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
Upgrade to Nom 3.2 #27
base: master
Are you sure you want to change the base?
Conversation
space >> | ||
bytes: parse_usize >> | ||
space >> | ||
opt!(tag!("kB")) >> |
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 may have misinterpreted the logic of the chain, this may not need to be wrapped in opt!
?
data: parse_usize >> | ||
space >> | ||
digit >> | ||
opt!(line_ending) >> // dt - unused since linux 2.6 |
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.
ditto, do you think I can drop the opt!
?
saved: parse_u32 >> | ||
space >> | ||
fs: parse_u32 >> | ||
opt!(line_ending) >> |
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.
ditto
named!(parse_cpus_allowed_list<()>, do_parse!( | ||
tag!("Cpus_allowed_list:\t") >> | ||
not_line_ending >> | ||
opt!(line_ending) >> |
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.
ditto
@@ -96,7 +96,7 @@ named!(interface_stats<DeviceStatus>, | |||
|
|||
named!(interface_list< Vec<DeviceStatus> >, | |||
do_parse!( | |||
interfaces: separated_list!(line_ending, interface_stats) >> | |||
interfaces: separated_list_complete!(line_ending, interface_stats) >> |
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'm not sure what the significance of this change is, but it was failing to unwrap Incomplete results until I changed this.
No description provided.