Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 5 additions & 4 deletions uefi/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -87,15 +87,16 @@
#![cfg_attr(all(feature = "unstable", feature = "alloc"), feature(allocator_api))]
#![cfg_attr(docsrs, feature(doc_auto_cfg))]
#![no_std]
// Enable some additional warnings and lints.
#![warn(clippy::ptr_as_ptr, missing_docs, unused)]
#![deny(
clippy::all,
clippy::missing_const_for_fn,
clippy::must_use_candidate,
clippy::ptr_as_ptr,
clippy::use_self,
clippy::missing_const_for_fn
missing_debug_implementations,
missing_docs,
unused
)]
#![deny(missing_debug_implementations)]

#[cfg(feature = "alloc")]
extern crate alloc;
Expand Down
2 changes: 2 additions & 0 deletions uefi/src/proto/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,8 @@
//!
//! [`BootServices`]: crate::table::boot::BootServices#accessing-protocols

#![warn(dead_code)] // https://github.com/rust-osdev/uefi-rs/issues/1205

use crate::Identify;
use core::ffi::c_void;

Expand Down
2 changes: 1 addition & 1 deletion uefi/src/proto/tcg/v1.rs
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ use ptr_meta::Pointee;
use {crate::mem::make_boxed, alloc::boxed::Box};

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

/// 20-byte SHA-1 digest.
pub type Sha1Digest = [u8; 20];
Expand Down
2 changes: 1 addition & 1 deletion uefi/src/proto/tcg/v2.rs
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ use ptr_meta::{Pointee, PtrExt};
use {crate::mem::make_boxed, alloc::boxed::Box};

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

/// Version information.
///
Expand Down