Skip to content

Instantly share code, notes, and snippets.

@bvssvni
Last active August 29, 2015 14:01
Show Gist options
  • Select an option

  • Save bvssvni/99ee83790b1674229e50 to your computer and use it in GitHub Desktop.

Select an option

Save bvssvni/99ee83790b1674229e50 to your computer and use it in GitHub Desktop.
impl ::std::fmt::Show for Event {
fn fmt(&self, out: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
out.write_str(match *self {
NoEvent => "NoEvent",
QuitEvent(..) => "QuitEvent",
AppTerminatingEvent(..) => "AppTerminatingEvent",
...
src/sdl2/event.rs:625:9: 665:11 error: mismatched types: expected `core::result::Result<(),core::fmt::FormatError>` but found `core::result::Result<(),std::io::IoError>` (expected enum core::fmt::FormatError but found struct std::io::IoError)
src/sdl2/event.rs:625 out.write_str(match *self {
src/sdl2/event.rs:626 NoEvent => "NoEvent",
src/sdl2/event.rs:627 QuitEvent(..) => "QuitEvent",
src/sdl2/event.rs:628 AppTerminatingEvent(..) => "AppTerminatingEvent",
src/sdl2/event.rs:629 AppLowMemoryEvent(..) => "AppLowMemoryEvent",
src/sdl2/event.rs:630 AppWillEnterBackgroundEvent(..) => "AppWillEnterBackgroundEvent",
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment