chore: disable warnings for generated code

This commit is contained in:
2026-09-30 19:07:02 +02:00
parent bb8298c4fe
commit 9eb850ad7c
2 changed files with 3 additions and 3 deletions

View File

@@ -1 +1,3 @@
#![allow(warnings)]
#![allow(clippy::all)]
include!(concat!(env!("OUT_DIR"), "/bindings.rs")); include!(concat!(env!("OUT_DIR"), "/bindings.rs"));

View File

@@ -1,5 +1,3 @@
include!(concat!(env!("OUT_DIR"), "/bindings.rs"));
pub unsafe fn c_str_to_rs_str_and_free(c_str: *mut std::os::raw::c_char) -> Option<String> { pub unsafe fn c_str_to_rs_str_and_free(c_str: *mut std::os::raw::c_char) -> Option<String> {
if c_str.is_null() { if c_str.is_null() {
return None; return None;
@@ -9,7 +7,7 @@ pub unsafe fn c_str_to_rs_str_and_free(c_str: *mut std::os::raw::c_char) -> Opti
.to_string_lossy() .to_string_lossy()
.to_string(); .to_string();
unsafe { g_free(c_str as *mut std::ffi::c_void) }; unsafe { crate::libnotify::g_free(c_str as *mut std::ffi::c_void) };
Some(normal_string) Some(normal_string)
} }