Browse Source

Fix lints

pull/149/head
Andrea Ciliberti 12 months ago
parent
commit
0c302e8d23
  1. 2
      ctru-rs/examples/file-explorer.rs
  2. 2
      ctru-rs/examples/mii-selector.rs
  3. 6
      ctru-rs/src/applets/swkbd.rs

2
ctru-rs/examples/file-explorer.rs

@ -165,7 +165,7 @@ impl<'a> FileExplorer<'a> { @@ -165,7 +165,7 @@ impl<'a> FileExplorer<'a> {
fn get_input_and_run(&mut self, action: impl FnOnce(&mut Self, String)) {
let mut keyboard = SoftwareKeyboard::default();
match keyboard.get_string(2048) {
match keyboard.get_string(2048, &self.apt, &self.gfx) {
Ok((path, Button::Right)) => {
// Clicked "OK".
action(self, path);

2
ctru-rs/examples/mii-selector.rs

@ -21,7 +21,7 @@ fn main() { @@ -21,7 +21,7 @@ fn main() {
mii_selector.set_title("Great Mii Selector!");
// Launch the Mii Selector and use its result to print the selected Mii's information.
match mii_selector.launch() {
match mii_selector.launch(&apt, &gfx) {
Ok(result) => {
println!("Mii type: {:?}", result.mii_type);
println!("Name: {:?}", result.mii_data.name);

6
ctru-rs/src/applets/swkbd.rs

@ -710,6 +710,12 @@ impl Default for SoftwareKeyboard { @@ -710,6 +710,12 @@ impl Default for SoftwareKeyboard {
}
}
impl Default for ParentalLock {
fn default() -> Self {
ParentalLock::new()
}
}
impl Display for Error {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
match self {

Loading…
Cancel
Save