]> git.proxmox.com Git - pve-lxc-syscalld.git/blobdiff - src/macros.rs
parameter handling:
[pve-lxc-syscalld.git] / src / macros.rs
index 5cc99223267f22bb4c7cabfc3b91b652824de0a1..3a0f56ff83791fdd4a5905f825746a77842da9a4 100644 (file)
@@ -1,6 +1,7 @@
 // c_str!() from the byte-strings crate is implemented via a proc macro which seems a bit excessive
 macro_rules! c_str {
     ($data:expr) => {{
+        #![allow(unused_unsafe)]
         let bytes = concat!($data, "\0");
         unsafe { std::ffi::CStr::from_bytes_with_nul_unchecked(bytes.as_bytes()) }
     }};