Skip to content

Use byte literals instead of casts #16291

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

Merged
merged 11 commits into from
Aug 7, 2014
Merged

Use byte literals instead of casts #16291

merged 11 commits into from
Aug 7, 2014

Conversation

nham
Copy link
Contributor

@nham nham commented Aug 6, 2014

This replaces many instances chars being casted to u8 with byte literals.

@@ -113,9 +113,9 @@ impl<'a> FromHex for &'a str {
buf <<= 4;

match byte as char {
Copy link
Member

Choose a reason for hiding this comment

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

This cast should be removable as well.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Done

bors added a commit that referenced this pull request Aug 6, 2014
This replaces many instances chars being casted to u8 with byte literals.
@bors bors closed this Aug 7, 2014
@bors bors merged commit 96d1712 into rust-lang:master Aug 7, 2014
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.

4 participants