From 7d2c5262ad600f1e473e9945241f880bf7a7c780 Mon Sep 17 00:00:00 2001 From: Jules Bertholet Date: Thu, 13 Aug 2026 22:44:11 -0400 Subject: [PATCH] Remove uncallable `Debug` impls Obtaining a reference to `c_void` is never correct, so these impls are effectively uncallable. --- src/joystick.rs | 1 - src/renderer.rs | 2 -- 2 files changed, 3 deletions(-) diff --git a/src/joystick.rs b/src/joystick.rs index d93cd353..d547e289 100644 --- a/src/joystick.rs +++ b/src/joystick.rs @@ -35,7 +35,6 @@ use crate::hints::*; use crate::*; /// The `SDL_Joystick` type is an opaque structure. -#[derive(Debug)] #[repr(transparent)] pub struct SDL_Joystick(c_void); diff --git a/src/renderer.rs b/src/renderer.rs index bd5b7ed3..ab1c4962 100644 --- a/src/renderer.rs +++ b/src/renderer.rs @@ -128,12 +128,10 @@ pub const SDL_FLIP_HORIZONTAL: SDL_RendererFlip = SDL_RendererFlip(0x00000001); pub const SDL_FLIP_VERTICAL: SDL_RendererFlip = SDL_RendererFlip(0x00000002); /// An opaque structure representing rendering state. -#[derive(Debug)] #[repr(transparent)] pub struct SDL_Renderer(c_void); /// An opaque, efficient, driver-specific representation of pixel data. -#[derive(Debug)] #[repr(transparent)] pub struct SDL_Texture(c_void);