mirror of
https://github.com/fish-shell/fish-shell.git
synced 2026-05-29 18:51:15 -03:00
Fix weird indentation in macro_rules
This commit is contained in:
@@ -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;
|
||||
|
||||
@@ -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)
|
||||
}
|
||||
}
|
||||
}
|
||||
)*
|
||||
)*
|
||||
};
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user