Skip to content

PatchSet doesn't support raw bytes #63

@weihanglo

Description

@weihanglo

In 3545dae, the current PatchSet::parse only support UTF-8 input but raw bytes. This was an oversight I forgot to fix when implementing it.

pub fn parse(input: &'a str, opts: ParseOptions) -> Self {
// Strip email preamble once at construction
let input = strip_email_preamble(input);
Self {
input,
offset: 0,
opts,
finished: false,
found_any: false,
}
}

Since Patch already supports raw bytes parsing, PatchSet should follow.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions