Skip to content
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

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open

Upgrade to Nom 3.2 #27

wants to merge 2 commits into from

Conversation

ccope
Copy link

@ccope ccope commented Jul 27, 2017

No description provided.

space >>
bytes: parse_usize >>
space >>
opt!(tag!("kB")) >>
Copy link
Author

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
Copy link
Author

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) >>
Copy link
Author

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) >>
Copy link
Author

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) >>
Copy link
Author

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant