Skip to content

Commit 9d1851b

Browse files
committed
reference the latest clippy issue
1 parent eaa01c5 commit 9d1851b

File tree

7 files changed

+12
-12
lines changed

7 files changed

+12
-12
lines changed

src/sdl2/macros.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ macro_rules! impl_raw_accessors(
44
impl $t {
55
#[inline]
66
// can prevent introducing UB until
7-
// https://github.com/rust-lang/rust-clippy/issues/3992 is fixed
7+
// https://github.com/rust-lang/rust-clippy/issues/5953 is fixed
88
#[allow(clippy::trivially_copy_pass_by_ref)]
99
pub const unsafe fn raw(&self) -> $raw { self.raw }
1010
}

src/sdl2/rect.rs

+2-2
Original file line numberDiff line numberDiff line change
@@ -392,7 +392,7 @@ impl Rect {
392392

393393
/// Returns the underlying C Rect.
394394
// this can prevent introducing UB until
395-
// https://github.com/rust-lang/rust-clippy/issues/3992 is fixed
395+
// https://github.com/rust-lang/rust-clippy/issues/5953 is fixed
396396
#[allow(clippy::trivially_copy_pass_by_ref)]
397397
pub fn raw(&self) -> *const sys::SDL_Rect {
398398
&self.raw
@@ -742,7 +742,7 @@ impl Point {
742742
slice.as_ptr() as *const sys::SDL_Point
743743
}
744744
// this can prevent introducing UB until
745-
// https://github.com/rust-lang/rust-clippy/issues/3992 is fixed
745+
// https://github.com/rust-lang/rust-clippy/issues/5953 is fixed
746746
#[allow(clippy::trivially_copy_pass_by_ref)]
747747
pub fn raw(&self) -> *const sys::SDL_Point {
748748
&self.raw

src/sdl2/render.rs

+5-5
Original file line numberDiff line numberDiff line change
@@ -220,7 +220,7 @@ impl<T> RendererContext<T> {
220220

221221
/// Gets the raw pointer to the SDL_Renderer
222222
// this can prevent introducing UB until
223-
// https://github.com/rust-lang/rust-clippy/issues/3992 is fixed
223+
// https://github.com/rust-lang/rust-clippy/issues/5953 is fixed
224224
#[allow(clippy::trivially_copy_pass_by_ref)]
225225
pub fn raw(&self) -> *mut sys::SDL_Renderer {
226226
self.raw
@@ -788,7 +788,7 @@ fn ll_create_texture(context: *mut sys::SDL_Renderer,
788788
/// Texture-creating methods for the renderer
789789
impl<T> TextureCreator<T> {
790790
// this can prevent introducing UB until
791-
// https://github.com/rust-lang/rust-clippy/issues/3992 is fixed
791+
// https://github.com/rust-lang/rust-clippy/issues/5953 is fixed
792792
#[allow(clippy::trivially_copy_pass_by_ref)]
793793
pub fn raw(&self) -> *mut sys::SDL_Renderer {
794794
self.context.raw()
@@ -929,7 +929,7 @@ impl<T> TextureCreator<T> {
929929
/// Drawing methods
930930
impl<T: RenderTarget> Canvas<T> {
931931
// this can prevent introducing UB until
932-
// https://github.com/rust-lang/rust-clippy/issues/3992 is fixed
932+
// https://github.com/rust-lang/rust-clippy/issues/5953 is fixed
933933
#[allow(clippy::trivially_copy_pass_by_ref)]
934934
pub fn raw(&self) -> *mut sys::SDL_Renderer {
935935
self.context.raw()
@@ -2158,7 +2158,7 @@ impl<'r> Texture<'r> {
21582158

21592159
#[inline]
21602160
// this can prevent introducing UB until
2161-
// https://github.com/rust-lang/rust-clippy/issues/3992 is fixed
2161+
// https://github.com/rust-lang/rust-clippy/issues/5953 is fixed
21622162
#[allow(clippy::trivially_copy_pass_by_ref)]
21632163
pub const fn raw(&self) -> *mut sys::SDL_Texture {
21642164
self.raw
@@ -2341,7 +2341,7 @@ impl<> Texture<> {
23412341

23422342
#[inline]
23432343
// this can prevent introducing UB until
2344-
// https://github.com/rust-lang/rust-clippy/issues/3992 is fixed
2344+
// https://github.com/rust-lang/rust-clippy/issues/5953 is fixed
23452345
#[allow(clippy::trivially_copy_pass_by_ref)]
23462346
pub const fn raw(&self) -> *mut sys::SDL_Texture {
23472347
self.raw

src/sdl2/rwops.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ pub struct RWops<'a> {
1717

1818
impl<'a> RWops<'a> {
1919
// this can prevent introducing UB until
20-
// https://github.com/rust-lang/rust-clippy/issues/3992 is fixed
20+
// https://github.com/rust-lang/rust-clippy/issues/5953 is fixed
2121
#[allow(clippy::trivially_copy_pass_by_ref)]
2222
pub unsafe fn raw(&self) -> *mut sys::SDL_RWops { self.raw }
2323

src/sdl2/surface.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -282,7 +282,7 @@ impl SurfaceRef {
282282

283283
#[inline]
284284
// this can prevent introducing UB until
285-
// https://github.com/rust-lang/rust-clippy/issues/3992 is fixed
285+
// https://github.com/rust-lang/rust-clippy/issues/5953 is fixed
286286
#[allow(clippy::trivially_copy_pass_by_ref)]
287287
pub fn raw(&self) -> *mut sys::SDL_Surface {
288288
self as *const SurfaceRef as *mut SurfaceRef as *mut () as *mut sys::SDL_Surface

src/sdl2/ttf/font.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -302,7 +302,7 @@ pub fn internal_load_font_at_index<'ttf,P: AsRef<Path>>(path: P, index: u32, pts
302302
impl<'ttf,'r> Font<'ttf,'r> {
303303
/// Returns the underlying C font object.
304304
// this can prevent introducing UB until
305-
// https://github.com/rust-lang/rust-clippy/issues/3992 is fixed
305+
// https://github.com/rust-lang/rust-clippy/issues/5953 is fixed
306306
#[allow(clippy::trivially_copy_pass_by_ref)]
307307
unsafe fn raw(&self) -> *mut ttf::TTF_Font {
308308
self.raw

src/sdl2/video.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -1076,7 +1076,7 @@ impl From<Window> for CanvasBuilder {
10761076
impl Window {
10771077
#[inline]
10781078
// this can prevent introducing UB until
1079-
// https://github.com/rust-lang/rust-clippy/issues/3992 is fixed
1079+
// https://github.com/rust-lang/rust-clippy/issues/5953 is fixed
10801080
#[allow(clippy::trivially_copy_pass_by_ref)]
10811081
pub fn raw(&self) -> *mut sys::SDL_Window { self.context.raw }
10821082

0 commit comments

Comments
 (0)