From c8e38a6fe42c312abb98524cc6a1ffeb89a12a9a Mon Sep 17 00:00:00 2001 From: Andrea Ciliberti Date: Sun, 15 Oct 2023 16:27:29 +0200 Subject: [PATCH] Final lint fixing? --- ctru-rs/examples/title-info.rs | 2 +- ctru-rs/src/services/romfs.rs | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/ctru-rs/examples/title-info.rs b/ctru-rs/examples/title-info.rs index b3b3f8e..4332750 100644 --- a/ctru-rs/examples/title-info.rs +++ b/ctru-rs/examples/title-info.rs @@ -68,7 +68,7 @@ fn main() { // Render the title list via a scrollable text UI. if refresh { - let mut selected_title = cur_list.iter().nth(offset).unwrap(); + let mut selected_title = cur_list.get(offset).unwrap(); // Clear the top screen and write title IDs to it. top_screen.select(); diff --git a/ctru-rs/src/services/romfs.rs b/ctru-rs/src/services/romfs.rs index 1202f6d..029525c 100644 --- a/ctru-rs/src/services/romfs.rs +++ b/ctru-rs/src/services/romfs.rs @@ -87,7 +87,7 @@ mod tests { fn romfs_lock() { let romfs = RomFS::new().unwrap(); - *ROMFS_ACTIVE.try_lock().unwrap(); + ROMFS_ACTIVE.try_lock().unwrap(); drop(romfs); }