Skip to content

Commit be4f39c

Browse files
Remove no-longer-needed allows for clippy lints
Various clippy lints have either been made smarter such that they no longer trigger, or have been moved to the pedantic group which is allowed by default.
1 parent 80a9600 commit be4f39c

File tree

7 files changed

+0
-8
lines changed

7 files changed

+0
-8
lines changed

src/alloc.rs

-1
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,6 @@ pub fn exit_boot_services() {
5151
/// Only valid for as long as the UEFI boot services are available.
5252
pub struct Allocator;
5353

54-
#[allow(clippy::cast_ptr_alignment)]
5554
unsafe impl GlobalAlloc for Allocator {
5655
unsafe fn alloc(&self, layout: Layout) -> *mut u8 {
5756
let mem_ty = MemoryType::LOADER_DATA;

src/proto/console/gop.rs

-1
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,6 @@ pub struct GraphicsOutput<'boot> {
7676
) -> Status,
7777
set_mode: extern "efiapi" fn(&mut GraphicsOutput, mode: u32) -> Status,
7878
// Clippy correctly complains that this is too complicated, but we can't change the spec.
79-
#[allow(clippy::type_complexity)]
8079
blt: unsafe extern "efiapi" fn(
8180
this: &mut GraphicsOutput,
8281
buffer: *mut BltPixel,

src/proto/media/file/info.rs

-1
Original file line numberDiff line numberDiff line change
@@ -265,7 +265,6 @@ impl FileSystemInfo {
265265
/// The buffer must be correctly aligned. You can query the required
266266
/// alignment using the `alignment()` method of the `Align` trait that this
267267
/// struct implements.
268-
#[allow(clippy::too_many_arguments)]
269268
pub fn new<'buf>(
270269
storage: &'buf mut [u8],
271270
read_only: bool,

src/result/status.rs

-1
Original file line numberDiff line numberDiff line change
@@ -128,7 +128,6 @@ impl Status {
128128

129129
/// Converts this status code into a result with a given value.
130130
#[inline]
131-
#[allow(clippy::result_unit_err)]
132131
pub fn into_with_val<T>(self, val: impl FnOnce() -> T) -> Result<T, ()> {
133132
if self.is_success() {
134133
Ok(val())

src/table/boot.rs

-1
Original file line numberDiff line numberDiff line change
@@ -283,7 +283,6 @@ impl BootServices {
283283
)> {
284284
let mut map_size = buffer.len();
285285
MemoryDescriptor::assert_aligned(buffer);
286-
#[allow(clippy::cast_ptr_alignment)]
287286
let map_buffer = buffer.as_ptr() as *mut MemoryDescriptor;
288287
let mut map_key = MemoryMapKey(0);
289288
let mut entry_size = 0;

src/table/cfg.rs

-2
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,6 @@
77
//! This module contains the actual entries of the configuration table,
88
//! as well as GUIDs for many known vendor tables.
99
10-
#![allow(clippy::unreadable_literal)]
11-
1210
use crate::Guid;
1311
use bitflags::bitflags;
1412
use core::ffi::c_void;

uefi-macros/src/lib.rs

-1
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,6 @@ pub fn unsafe_guid(args: TokenStream, input: TokenStream) -> TokenStream {
6868
result.append_all(quote! {
6969
unsafe impl #impl_generics ::uefi::Identify for #ident #ty_generics #where_clause {
7070
#[doc(hidden)]
71-
#[allow(clippy::unreadable_literal)]
7271
const GUID: ::uefi::Guid = ::uefi::Guid::from_values(
7372
#time_low,
7473
#time_mid,

0 commit comments

Comments
 (0)