Skip to content

Address io::io_error removal #43

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 1 commit into from
Feb 5, 2014
Merged

Address io::io_error removal #43

merged 1 commit into from
Feb 5, 2014

Conversation

jcmoyer
Copy link
Contributor

@jcmoyer jcmoyer commented Feb 5, 2014

Rust PR: rust-lang/rust#11946

Description of changes:

  • src/codegen/{keycode.rs,scancode.rs}: for..in expects a result type of (); with the IO changes all the Writer methods now return IoResult<()>, so a trailing ; is required.
  • src/codegen/main.rs: open_mode returns an IoResult<File> (an alias for Result<File, IoError>), so Some/None need to be replaced with Ok/Err.

An unfortunate side effect of this change is that there are now a bunch of warnings during compilation because nothing is being done with the IoResults:
warning: unused result which must be used, #[warn(unused_must_use)] on by default
I haven't done anything to address this because I'm not sure what the best course of action is.

@AngryLawyer
Copy link
Member

Wonderful. Don't worry too much about the warnings; create a github issue for it and we'll solve it at some point.

AngryLawyer added a commit that referenced this pull request Feb 5, 2014
Address io::io_error removal
@AngryLawyer AngryLawyer merged commit 6af828a into Rust-SDL2:master Feb 5, 2014
@jcmoyer jcmoyer deleted the rust-master branch April 26, 2014 04:23
Cobrand pushed a commit that referenced this pull request Dec 2, 2016
Cobrand pushed a commit that referenced this pull request Dec 2, 2016
Make Font never outlive its RWops anymore
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