From 152a0b901072dba5cc02544430822b71977c8348 Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Mon, 20 Nov 2023 04:53:23 +0000 Subject: [PATCH 1/2] build(deps): update windows-sys requirement from 0.48.0 to 0.52.0 Updates the requirements on [windows-sys](https://github.com/microsoft/windows-rs) to permit the latest version. - [Release notes](https://github.com/microsoft/windows-rs/releases) - [Commits](https://github.com/microsoft/windows-rs/compare/0.48.0...0.52.0) --- updated-dependencies: - dependency-name: windows-sys dependency-type: direct:production ... Signed-off-by: dependabot[bot] --- Cargo.toml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Cargo.toml b/Cargo.toml index 597f3d9..21ceab0 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -42,7 +42,7 @@ wayland-sys = "0.31.0" x11rb = { version = "0.12.0", features = ["allow-unsafe-code", "shm"], optional = true } [target.'cfg(target_os = "windows")'.dependencies.windows-sys] -version = "0.48.0" +version = "0.52.0" features = ["Win32_Graphics_Gdi", "Win32_UI_WindowsAndMessaging", "Win32_Foundation"] [target.'cfg(target_os = "macos")'.dependencies] From 84caffb3122fd536d9f2ba1f2d66454e8809ad20 Mon Sep 17 00:00:00 2001 From: John Nunley Date: Sun, 19 Nov 2023 21:04:23 -0800 Subject: [PATCH 2/2] Fix the clippy warning Signed-off-by: John Nunley --- src/win32.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/win32.rs b/src/win32.rs index a703aad..4263d1d 100644 --- a/src/win32.rs +++ b/src/win32.rs @@ -53,7 +53,7 @@ impl Buffer { biHeight: -height.get(), biPlanes: 1, biBitCount: 32, - biCompression: Gdi::BI_BITFIELDS as u32, + biCompression: Gdi::BI_BITFIELDS, biSizeImage: 0, biXPelsPerMeter: 0, biYPelsPerMeter: 0,