Skip to content

Upgrade to Nom 3.2#27

Open
ccope wants to merge 2 commits into
danburkert:masterfrom
ccope:nom3
Open

Upgrade to Nom 3.2#27
ccope wants to merge 2 commits into
danburkert:masterfrom
ccope:nom3

Conversation

@ccope

@ccope ccope commented Jul 27, 2017

Copy link
Copy Markdown

No description provided.

Comment thread src/parsers.rs
space >>
bytes: parse_usize >>
space >>
opt!(tag!("kB")) >>

Copy link
Copy Markdown
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!?

Comment thread src/pid/statm.rs
data: parse_usize >>
space >>
digit >>
opt!(line_ending) >> // dt - unused since linux 2.6

Copy link
Copy Markdown
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!?

Comment thread src/pid/status.rs
saved: parse_u32 >>
space >>
fs: parse_u32 >>
opt!(line_ending) >>

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ditto

Comment thread src/pid/status.rs
named!(parse_cpus_allowed_list<()>, do_parse!(
tag!("Cpus_allowed_list:\t") >>
not_line_ending >>
opt!(line_ending) >>

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ditto

Comment thread src/net/dev.rs
named!(interface_list< Vec<DeviceStatus> >,
do_parse!(
interfaces: separated_list!(line_ending, interface_stats) >>
interfaces: separated_list_complete!(line_ending, interface_stats) >>

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