From 29c898dff0d6b6701733bd2236bfffb77b32ed58 Mon Sep 17 00:00:00 2001 From: Jeremy Soller Date: Wed, 1 Mar 2023 11:12:33 -0700 Subject: [PATCH] Cargo format --- src/header/wchar/mod.rs | 6 +++++- src/header/wchar/wprintf.rs | 6 +++++- 2 files changed, 10 insertions(+), 2 deletions(-) diff --git a/src/header/wchar/mod.rs b/src/header/wchar/mod.rs index 8a371a21a7..072f2b5f2c 100644 --- a/src/header/wchar/mod.rs +++ b/src/header/wchar/mod.rs @@ -250,7 +250,11 @@ pub unsafe extern "C" fn ungetwc(wc: wint_t, stream: &mut FILE) -> wint_t { } #[no_mangle] -pub unsafe extern "C" fn vfwprintf(stream: *mut FILE, format: *const wchar_t, arg: va_list) -> c_int { +pub unsafe extern "C" fn vfwprintf( + stream: *mut FILE, + format: *const wchar_t, + arg: va_list, +) -> c_int { let mut stream = (*stream).lock(); if let Err(_) = (*stream).try_set_wide_orientation_unlocked() { return -1; diff --git a/src/header/wchar/wprintf.rs b/src/header/wchar/wprintf.rs index 89f02d73d4..bc1ed17f4c 100644 --- a/src/header/wchar/wprintf.rs +++ b/src/header/wchar/wprintf.rs @@ -612,7 +612,11 @@ impl Iterator for WPrintfIter { } } -unsafe fn inner_wprintf(w: W, format: *const wchar_t, mut ap: VaList) -> io::Result { +unsafe fn inner_wprintf( + w: W, + format: *const wchar_t, + mut ap: VaList, +) -> io::Result { let w = &mut platform::CountingWriter::new(w); let iterator = WPrintfIter {