From ff130ff642228239cee7b6a01c6a21281f2d46f0 Mon Sep 17 00:00:00 2001 From: Hikari Hayashi Date: Mon, 8 Jan 2024 18:22:24 +0800 Subject: [PATCH] Fix deprecation warning --- crates/fontconfig-sys/build.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/crates/fontconfig-sys/build.rs b/crates/fontconfig-sys/build.rs index 476d762..b587d67 100644 --- a/crates/fontconfig-sys/build.rs +++ b/crates/fontconfig-sys/build.rs @@ -15,7 +15,7 @@ fn main() { let bindings = builder() .header("./include/fontconfig.h") - .parse_callbacks(Box::new(CargoCallbacks)) + .parse_callbacks(Box::new(CargoCallbacks::new())) .clang_args(clang_args) .ctypes_prefix("::libc") .allowlist_file(r".+[/\\]fontconfig[/\\].+")