Skip to content
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

Removed some warnings #158

Merged
merged 4 commits into from
Dec 24, 2019
Merged

Removed some warnings #158

merged 4 commits into from
Dec 24, 2019

Conversation

ashWhiteHat
Copy link
Contributor

@ashWhiteHat ashWhiteHat commented Dec 23, 2019

■First commit
Just remove the unnecessary semicolon.

■Second commit
The into_iter() return the reference currently but this function will stop returning reference because of upcoming breaking change following issue so it won't be able to use *.
Replacing with iter(), it keeps returning reference.
rust-lang/rust#66145

■Third commit
We can use ? operator instead of try!.
The RFC about this is following.
https://rust-lang.github.io/rfcs/1859-try-trait.html#desugaring-and-the-try-trait

■Fourth commit
The alloc crate is stable since Version 1.36.0 (2019-07-04) release so we don't have to require the attribute.

@osuketh
Copy link
Member

osuketh commented Dec 24, 2019

Thanks for this PR. LGTM

@osuketh osuketh merged commit 7763d6e into LayerXcom:master Dec 24, 2019
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.

2 participants