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); }