From 84b95a9d4c54821844a50a2c23679a06a79b1111 Mon Sep 17 00:00:00 2001 From: Andrea Ciliberti Date: Thu, 28 Dec 2023 19:16:08 +0100 Subject: [PATCH] Fmt and lints --- ctru-rs/src/applets/swkbd.rs | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/ctru-rs/src/applets/swkbd.rs b/ctru-rs/src/applets/swkbd.rs index 771d88c..b4a2ba3 100644 --- a/ctru-rs/src/applets/swkbd.rs +++ b/ctru-rs/src/applets/swkbd.rs @@ -375,21 +375,21 @@ impl SoftwareKeyboard { /// # Notes /// /// The filter callback will work only for the next time the keyboard is used. After using it once, it must be set again. - /// + /// /// # Example /// /// ``` /// # let _runner = test_runner::GdbRunner::default(); /// # fn main() { /// # - /// use ctru::applets::swkbd::{SoftwareKeyboard, CallbackInput}; + /// use ctru::applets::swkbd::{SoftwareKeyboard, CallbackResult}; /// let mut keyboard = SoftwareKeyboard::default(); - /// + /// /// keyboard.set_filter_callback(|text| { /// if text.contains("boo") { /// println!("Ah, you scared me!"); /// } - /// + /// /// (CallbackResult::Ok, None) /// }); /// # @@ -533,9 +533,9 @@ impl SoftwareKeyboard { /// Set the 2 custom characters to add to the keyboard while using [`Kind::Numpad`]. /// /// These characters will appear in their own buttons right next to the `0` key. - /// + /// /// # Notes - /// + /// /// If `None` is passed as either key, that button will not be shown to the user. /// /// # Example @@ -548,7 +548,7 @@ impl SoftwareKeyboard { /// let mut keyboard = SoftwareKeyboard::new(Kind::Numpad, ButtonConfig::LeftRight); /// /// keyboard.set_numpad_keys(Some('#'), Some('.')); - /// + /// /// // The right numpad key will not be shown. /// keyboard.set_numpad_keys(Some('!'), None); /// # @@ -678,7 +678,7 @@ impl ParentalLock { /// # let apt = Apt::new().unwrap(); /// use ctru::applets::swkbd::{ParentalLock, Error}; /// - /// let parental_lock = ParentalLock::new(); + /// let mut parental_lock = ParentalLock::new(); /// /// match parental_lock.launch(&apt, &gfx) { /// Ok(_) => println!("You can access parental-only features and settings."),