Skip to content

Commit

Permalink
Final lint fixing?
Browse files Browse the repository at this point in the history
  • Loading branch information
Meziu committed Oct 15, 2023
1 parent 6afad4d commit c8e38a6
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion ctru-rs/examples/title-info.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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();
Expand Down
2 changes: 1 addition & 1 deletion ctru-rs/src/services/romfs.rs
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@ mod tests {
fn romfs_lock() {
let romfs = RomFS::new().unwrap();

*ROMFS_ACTIVE.try_lock().unwrap();
ROMFS_ACTIVE.try_lock().unwrap();

Check warning on line 90 in ctru-rs/src/services/romfs.rs

View workflow job for this annotation

GitHub Actions / lint (nightly-2023-05-31)

unused `std::sync::MutexGuard` that must be used

drop(romfs);
}
Expand Down

0 comments on commit c8e38a6

Please sign in to comment.