Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commitdef0fc8

Browse files
Merge pull request#1274 from phip1611/clippy-2
clippy: streamline lints
2 parents7d61816 +071db39 commitdef0fc8

File tree

4 files changed

+9
-6
lines changed

4 files changed

+9
-6
lines changed

‎uefi/src/lib.rs

Lines changed: 5 additions & 4 deletions
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
externcrate alloc;

‎uefi/src/proto/mod.rs

Lines changed: 2 additions & 0 deletions
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
usecrate::Identify;
1315
use core::ffi::c_void;
1416

‎uefi/src/proto/tcg/v1.rs

Lines changed: 1 addition & 1 deletion
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
pubtypeSha1Digest =[u8;20];

‎uefi/src/proto/tcg/v2.rs

Lines changed: 1 addition & 1 deletion
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)

[8]ページ先頭

©2009-2025 Movatter.jp