Skip to content

Commit

Permalink
revert undefined behavior introduction (recommended by clippy?)
Browse files Browse the repository at this point in the history
  • Loading branch information
danielrh committed Aug 24, 2020
1 parent 36a1f61 commit 1525769
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/sdl2/rect.rs
Original file line number Diff line number Diff line change
Expand Up @@ -739,7 +739,7 @@ impl Point {
slice.as_ptr() as *const sys::SDL_Point
}

pub fn raw(self) -> *const sys::SDL_Point {
pub fn raw(&self) -> *const sys::SDL_Point {
&self.raw
}

Expand Down

0 comments on commit 1525769

Please sign in to comment.