Skip to content

Conversation

ghost
Copy link

@ghost ghost commented Feb 24, 2021

This PR adds an addition binding that skips UTF-8 validation as described in #671 (comment) as AttrValue::always_bytes():

impl<'string> AttrValue<'string> {
    pub fn always_bytes(value: Option<&'string [u8]>) -> Self;
}

Copy link
Member

@alexcrichton alexcrichton left a comment

Choose a reason for hiding this comment

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

Seems reasonable to me!

@alexcrichton alexcrichton merged commit 0909647 into rust-lang:master Mar 2, 2021
@ghost ghost deleted the git-attr-value branch March 2, 2021 15:31
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