Skip to content
This repository has been archived by the owner on Nov 9, 2017. It is now read-only.

Rust 1.0pre compat #195

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

Conversation

johnpmayer
Copy link

haven't seen this started yet, trying to capture the low-hanging fruit

this isn't finished

@@ -104,13 +104,13 @@ pub fn generate_branchified_method(
let next_prefix = format!("{}{}", prefix, c as char);
w!(format!("Ok(b'{}') => match {} {{", c as char, read_call));
for b in branch.children.iter() {
try!(r(writer, b, next_prefix[], indent + 1, read_call, end, max_len, valid, unknown));
try!(r(writer, b, next_prefix.as_slice(), indent + 1, read_call, end, max_len, valid, unknown));
Copy link
Owner

Choose a reason for hiding this comment

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

The better transformation here is &next_prefix[].

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

Successfully merging this pull request may close these issues.

3 participants