From 495779a21b555a52aea198508fb9a15ccf4592bd Mon Sep 17 00:00:00 2001 From: nicoan Date: Wed, 15 Apr 2026 15:40:16 -0300 Subject: [PATCH] format --- src/header/stdio/scanf.rs | 2 -- tests/wchar/wscanf.c | 11 ----------- 2 files changed, 13 deletions(-) diff --git a/src/header/stdio/scanf.rs b/src/header/stdio/scanf.rs index f895b57c03..be61c147af 100644 --- a/src/header/stdio/scanf.rs +++ b/src/header/stdio/scanf.rs @@ -180,7 +180,6 @@ pub unsafe fn inner_scanf( } } - let pointer = c == 'p'; // Pointers aren't automatic, but we do want to parse "0x" let auto = c == 'i' || pointer; @@ -192,7 +191,6 @@ pub unsafe fn inner_scanf( _ => 10, }; - let mut n = String::new(); let mut dot = false; diff --git a/tests/wchar/wscanf.c b/tests/wchar/wscanf.c index f78ed5b879..01962484f0 100644 --- a/tests/wchar/wscanf.c +++ b/tests/wchar/wscanf.c @@ -100,14 +100,3 @@ int main () return 0; } - -/* - wchar_t world[6]; - int value; - int ret = swscanf(L"hello world 42", L"hello %5ls %d", world, &value); - // int ret = swscanf(L"42", L"%d", &value); - - // wprintf(L"swscanf gave '%ls' instead of '%ls'", world, L"world"); - printf("swscanf gave '%d' instead of %d", value, 42); - printf("ret %d\n", ret); -*/