From e0a6e10e4f6ff7b36297d5eef27f59e25f7e12f6 Mon Sep 17 00:00:00 2001 From: MikuroXina Date: Sun, 21 Jan 2024 13:15:28 +0900 Subject: [PATCH] refactor: Fix deprecation --- rich-sdl2-rust-sys/build.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/rich-sdl2-rust-sys/build.rs b/rich-sdl2-rust-sys/build.rs index ecbb6db2..743d99e5 100644 --- a/rich-sdl2-rust-sys/build.rs +++ b/rich-sdl2-rust-sys/build.rs @@ -44,7 +44,7 @@ fn main() { .allowlist_var("SDL_.*") .generate_comments(false) .prepend_enum_name(false) - .parse_callbacks(Box::new(bindgen::CargoCallbacks)); + .parse_callbacks(Box::new(bindgen::CargoCallbacks::new())); } if cfg!(feature = "ttf") { builder = builder