Skip to content

Conversation

nicholasbishop
Copy link
Member

Checklist

  • Sensible git history (for example, squash "typo" or "fix" commits). See the Rewriting History guide for help.
  • Update the changelog (if necessary)

@nicholasbishop nicholasbishop changed the title test-runner: Fix dead code warning Fix some new lints/warnings Mar 21, 2024
@phip1611 phip1611 added this pull request to the merge queue Mar 25, 2024
@github-merge-queue github-merge-queue bot removed this pull request from the merge queue due to failed status checks Mar 25, 2024
@phip1611 phip1611 added this pull request to the merge queue Mar 25, 2024
@github-merge-queue github-merge-queue bot removed this pull request from the merge queue due to failed status checks Mar 25, 2024
@phip1611
Copy link
Member

The merge train pipeline fails:

https://github.com/rust-osdev/uefi-rs/actions/runs/8417467100/job/23045999267

@nicholasbishop - unfortunately, I do not have time to look into this.

The nightly compiler has started warning about imports that aren't needed due to
existing glob imports, including in the prelude. Remove all of these unnecessary
imports.
@nicholasbishop
Copy link
Member Author

Looks like the nightly compiler now warns if you import something by name that was already imported by glob. So for example:

use uefi::prelude::*;
use uefi::table::boot::BootServices;  // warning: the item `BootServices` is already imported

In a couple places this was also happening due to the prelude glob, e.g. an import of Iterator now warns since it's already imported in the prelude.

Pushed another commit to fix all those cases.

@nicholasbishop nicholasbishop added this pull request to the merge queue Mar 26, 2024
Merged via the queue into main with commit 0582723 Mar 26, 2024
@nicholasbishop nicholasbishop deleted the bishop-fix-dead-warn branch March 26, 2024 01:48
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants