diff --git a/ctru-rs/examples/touch-screen.rs b/ctru-rs/examples/touch-screen.rs index 8475eac7..332ae539 100644 --- a/ctru-rs/examples/touch-screen.rs +++ b/ctru-rs/examples/touch-screen.rs @@ -31,7 +31,7 @@ fn main() { // from what it was on the previous frame. if touch != old_touch { // Move the cursor back to the top of the screen and print the coordinates. - print!("\x1b[1;1HTouch Screen position: {:#?}", touch); + print!("\x1b[1;1HTouch Screen position: {touch:#?}"); // Special case for when the user lifts the stylus/finger from the screen. // This is done to avoid some screen tearing. diff --git a/ctru-rs/examples/wifi-info.rs b/ctru-rs/examples/wifi-info.rs index 1cae5c9d..43e66a4c 100644 --- a/ctru-rs/examples/wifi-info.rs +++ b/ctru-rs/examples/wifi-info.rs @@ -35,7 +35,7 @@ fn main() { fn print_network_info(ac: &Ac) -> Result<(), Box> { let status = ac.wifi_status()?; - println!("Wi-Fi status: {:?}", status); + println!("Wi-Fi status: {status:?}"); // Some methods error out if the console isn't connected if matches!( @@ -45,7 +45,7 @@ fn print_network_info(ac: &Ac) -> Result<(), Box> { println!("Wi-Fi SSID: {}", String::from_utf8(ac.wifi_ssid()?)?); println!("Wi-Fi security: {:?}", ac.wifi_security()?); let proxied = ac.proxy_enabled()?; - println!("Proxy enabled: {}", proxied); + println!("Proxy enabled: {proxied}"); if proxied { println!("Proxy port: {}", ac.proxy_port()?); println!( diff --git a/ctru-rs/src/services/ac.rs b/ctru-rs/src/services/ac.rs index cb693e26..4a4721ae 100644 --- a/ctru-rs/src/services/ac.rs +++ b/ctru-rs/src/services/ac.rs @@ -104,7 +104,7 @@ impl Ac { 1 => NetworkStatus::Idle, 2 => NetworkStatus::LANConnected, 3 => NetworkStatus::WANConnected, - _ => return Err(crate::Error::Other(format!("Unknown value {}", ret))), + _ => return Err(crate::Error::Other(format!("Unknown value {ret}"))), }) } } @@ -151,7 +151,7 @@ impl Ac { 6 => SecurityMode::WPA_AES, 7 => SecurityMode::WPA2_AES, - _ => return Err(crate::Error::Other(format!("Unknown value {}", ret))), + _ => return Err(crate::Error::Other(format!("Unknown value {ret}"))), }) } }