From ad94eeb13678257d1c8ebdb3b2ab4bdc979a4273 Mon Sep 17 00:00:00 2001 From: TheRealDust <73678906+TheRealDust@users.noreply.github.com> Date: Tue, 2 Jul 2024 11:22:28 +1000 Subject: [PATCH 1/2] Fixed Dead Code Warning Disabled dead code warning. --- src/sdl2/video.rs | 1 + 1 file changed, 1 insertion(+) diff --git a/src/sdl2/video.rs b/src/sdl2/video.rs index b539085418..c758a61425 100644 --- a/src/sdl2/video.rs +++ b/src/sdl2/video.rs @@ -547,6 +547,7 @@ impl GLContext { pub struct WindowContext { subsystem: VideoSubsystem, raw: *mut sys::SDL_Window, + #[allow(dead_code)] pub(crate) metal_view: sys::SDL_MetalView, } From 63d39fad8268635b87931bdb9df89f54371793f6 Mon Sep 17 00:00:00 2001 From: Shivang K Raghuvanshi <136506971+shivkr6@users.noreply.github.com> Date: Tue, 2 Jul 2024 09:32:50 +0530 Subject: [PATCH 2/2] fix docs Fixed a typo in the readme. --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 50eafcf21d..f2a50cf841 100644 --- a/README.md +++ b/README.md @@ -10,7 +10,7 @@ Rust-SDL2 is a library for talking to the new SDL2.0 libraries from Rust. Low-level C components are wrapped in Rust code to make them more idiomatic and abstract away inappropriate manual memory management. -Rust-SDL2 uses the MIT license, but SDL2 itselfais in under the zlib license. +Rust-SDL2 uses the MIT license, but SDL2 itself is under the zlib license. ## Available rust features