Cargo format

This commit is contained in:
Jeremy Soller
2023-03-01 11:12:33 -07:00
parent e1ecdbd8a5
commit 29c898dff0
2 changed files with 10 additions and 2 deletions
+5 -1
View File
@@ -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;
+5 -1
View File
@@ -612,7 +612,11 @@ impl Iterator for WPrintfIter {
}
}
unsafe fn inner_wprintf<W: Write>(w: W, format: *const wchar_t, mut ap: VaList) -> io::Result<c_int> {
unsafe fn inner_wprintf<W: Write>(
w: W,
format: *const wchar_t,
mut ap: VaList,
) -> io::Result<c_int> {
let w = &mut platform::CountingWriter::new(w);
let iterator = WPrintfIter {