Skip to content

Commit

Permalink
rm unnecessary owned conversion
Browse files Browse the repository at this point in the history
  • Loading branch information
andelf committed May 11, 2014
1 parent d711dd5 commit cfeb4d4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/sdl2/event.rs
Original file line number Diff line number Diff line change
Expand Up @@ -799,7 +799,7 @@ impl Event {
};

let text = str::from_utf8_lossy(event.text.iter().take_while(|&b| (*b) != 0i8).map(|&b| b as u8).collect::<Vec<u8>>().as_slice()).into_owned();
TextInputEvent(event.timestamp as uint, window, text.to_owned())
TextInputEvent(event.timestamp as uint, window, text)
}

MouseMotionEventType => {
Expand Down

0 comments on commit cfeb4d4

Please sign in to comment.