Browse Source

Make lint CI happy

pull/95/head
Maccraft123 2 years ago
parent
commit
83b963d28b
  1. 8
      ctru-rs/examples/title-info.rs
  2. 2
      ctru-rs/src/services/mod.rs

8
ctru-rs/examples/title-info.rs

@ -11,10 +11,14 @@ fn main() { @@ -11,10 +11,14 @@ fn main() {
let am = Am::init().expect("Couldn't obtain AM controller");
let _console = Console::init(gfx.top_screen.borrow_mut());
let title_count = am.get_title_count(FsMediaType::Sd).expect("Failed to get title count");
let title_count = am
.get_title_count(FsMediaType::Sd)
.expect("Failed to get title count");
println!("This 3DS has {title_count} titles on its SD Card:");
let title_list = am.get_title_list(FsMediaType::Sd).expect("Failed to get title list");
let title_list = am
.get_title_list(FsMediaType::Sd)
.expect("Failed to get title list");
for id in title_list {
println!("{id:x}");
}

2
ctru-rs/src/services/mod.rs

@ -5,8 +5,8 @@ @@ -5,8 +5,8 @@
//!
//! Some include: button input, audio playback, graphics rendering, built-in cameras, etc.
pub mod apt;
pub mod am;
pub mod apt;
pub mod cam;
pub mod cfgu;
pub mod fs;

Loading…
Cancel
Save