We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
This what rustfmt produces when I run the code formatting
#[macro_export] macro_rules! from_cstr { ($x:expr) => {{ use std::ffi::CStr; let c_str = unsafe { CStr::from_ptr($x) }; let Ok(c_str) = c_str.to_str() else { return null!() }; c_str }}; }