From 68052ac5ff7d06b80df9ed55993a5b6c33cc4397 Mon Sep 17 00:00:00 2001 From: Tim Crawford Date: Tue, 17 Oct 2023 14:00:18 -0600 Subject: [PATCH] Remove use of prelude_import 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 --- src/gop_policy.rs | 1 + src/main.rs | 3 --- 2 files changed, 1 insertion(+), 3 deletions(-) diff --git a/src/gop_policy.rs b/src/gop_policy.rs index ded8ce7..1e1338a 100644 --- a/src/gop_policy.rs +++ b/src/gop_policy.rs @@ -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}; diff --git a/src/main.rs b/src/main.rs index ca0b468..eb604d8 100644 --- a/src/main.rs +++ b/src/main.rs @@ -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;