Fix weird indentation in macro_rules

This commit is contained in:
Johannes Altmanninger
2025-10-25 19:38:58 +02:00
parent f331f6a8a9
commit 5cad71c081
2 changed files with 11 additions and 11 deletions

View File

@@ -494,12 +494,12 @@ fn test_autoload() {
use nix::fcntl::OFlag;
macro_rules! run {
( $fmt:expr $(, $arg:expr )* $(,)? ) => {
let cmd = wcs2zstring(&sprintf!($fmt $(, $arg)*));
let status = unsafe { libc::system(cmd.as_ptr()) };
assert!(status == 0);
};
}
( $fmt:expr $(, $arg:expr )* $(,)? ) => {
let cmd = wcs2zstring(&sprintf!($fmt $(, $arg)*));
let status = unsafe { libc::system(cmd.as_ptr()) };
assert!(status == 0);
};
}
fn touch_file(path: &wstr) {
use nix::sys::stat::Mode;

View File

@@ -56,12 +56,12 @@ fn to_wstring(&self) -> WString {
macro_rules! impl_to_wstring_unsigned {
($($t:ty), *) => {
$(
impl ToWString for $t {
fn to_wstring(&self) -> WString {
to_wstring_impl(*self as u64, false)
impl ToWString for $t {
fn to_wstring(&self) -> WString {
to_wstring_impl(*self as u64, false)
}
}
}
)*
)*
};
}