Skip to content

Commit def0fc8

Browse files
Merge pull request #1274 from phip1611/clippy-2
clippy: streamline lints
2 parents 7d61816 + 071db39 commit def0fc8

File tree

4 files changed

+9
-6
lines changed

4 files changed

+9
-6
lines changed

uefi/src/lib.rs

+5-4
Original file line numberDiff line numberDiff line change
@@ -87,15 +87,16 @@
8787
#![cfg_attr(all(feature = "unstable", feature = "alloc"), feature(allocator_api))]
8888
#![cfg_attr(docsrs, feature(doc_auto_cfg))]
8989
#![no_std]
90-
// Enable some additional warnings and lints.
91-
#![warn(clippy::ptr_as_ptr, missing_docs, unused)]
9290
#![deny(
9391
clippy::all,
92+
clippy::missing_const_for_fn,
9493
clippy::must_use_candidate,
94+
clippy::ptr_as_ptr,
9595
clippy::use_self,
96-
clippy::missing_const_for_fn
96+
missing_debug_implementations,
97+
missing_docs,
98+
unused
9799
)]
98-
#![deny(missing_debug_implementations)]
99100

100101
#[cfg(feature = "alloc")]
101102
extern crate alloc;

uefi/src/proto/mod.rs

+2
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,8 @@
99
//!
1010
//! [`BootServices`]: crate::table::boot::BootServices#accessing-protocols
1111
12+
#![warn(dead_code)] // https://github.com/rust-osdev/uefi-rs/issues/1205
13+
1214
use crate::Identify;
1315
use core::ffi::c_void;
1416

uefi/src/proto/tcg/v1.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ use ptr_meta::Pointee;
2222
use {crate::mem::make_boxed, alloc::boxed::Box};
2323

2424
#[cfg(all(feature = "unstable", feature = "alloc"))]
25-
use {alloc::alloc::Global, core::alloc::Allocator};
25+
use alloc::alloc::Global;
2626

2727
/// 20-byte SHA-1 digest.
2828
pub type Sha1Digest = [u8; 20];

uefi/src/proto/tcg/v2.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ use ptr_meta::{Pointee, PtrExt};
2525
use {crate::mem::make_boxed, alloc::boxed::Box};
2626

2727
#[cfg(all(feature = "unstable", feature = "alloc"))]
28-
use {alloc::alloc::Global, core::alloc::Allocator};
28+
use alloc::alloc::Global;
2929

3030
/// Version information.
3131
///

0 commit comments

Comments
 (0)