Skip to content

Commit

Permalink
Remove use of prelude_import
Browse files Browse the repository at this point in the history
Fixes the following warning:

    warning: the feature `prelude_import` is internal to the compiler or standard library
     --> src/main.rs:5:12
      |
    5 | #![feature(prelude_import)]
      |            ^^^^^^^^^^^^^^
      |
      = note: using it is strongly discouraged
      = note: `#[warn(internal_features)]` on by default

Signed-off-by: Tim Crawford <[email protected]>
  • Loading branch information
crawfxrd authored and jackpot51 committed Oct 19, 2023
1 parent 5394cdc commit 68052ac
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 3 deletions.
1 change: 1 addition & 0 deletions src/gop_policy.rs
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
// SPDX-License-Identifier: GPL-3.0-only

use core::ops::FromResidual;
use std::prelude::*;
use std::uefi::Handle;
use std::uefi::boot::InterfaceType;
use std::uefi::guid::{Guid, NULL_GUID};
Expand Down
3 changes: 0 additions & 3 deletions src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2,15 +2,12 @@

#![no_std]
#![no_main]
#![feature(prelude_import)]
#![feature(try_trait_v2)]
#![allow(non_snake_case)]

#[macro_use]
extern crate uefi_std as std;

#[allow(unused_imports)]
#[prelude_import]
use std::prelude::*;

use core::ops::FromResidual;
Expand Down

0 comments on commit 68052ac

Please sign in to comment.