From c74d085aec82cee896003d03702565e264eade9b Mon Sep 17 00:00:00 2001 From: James0124 Date: Fri, 26 Jan 2024 02:28:53 +0900 Subject: [PATCH] Bump `bindgen` to `0.69.2`. --- Cargo.toml | 2 +- src/lib.rs | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/Cargo.toml b/Cargo.toml index 28c3425..b81f8b7 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -21,7 +21,7 @@ thiserror = "1.0" scopeguard = "1.1" serde = { version = "1.0.145", features = ["derive"] } serde_json = "1.0" -bindgen = "0.60.1" +bindgen = "0.69.2" [target.'cfg(target_os = "windows")'.build-dependencies] kernel32-sys = "0.2" diff --git a/src/lib.rs b/src/lib.rs index c33ca9c..2b9031b 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -117,7 +117,7 @@ pub unsafe fn compile( if option_flags.contains(CompileOptionFlags::AddOpSource) { let code_c_str = CStr::from_ptr(input.code); - glslang_program_add_source_text(program, input.stage, code_c_str.as_ptr(), code_c_str.to_str().unwrap().len() as size_t); + glslang_program_add_source_text(program, input.stage, code_c_str.as_ptr(), code_c_str.to_str().unwrap().len()); if let Some(source_file_name) = source_file_name { let source_file_name_c_string = std::ffi::CString::new(source_file_name).unwrap();