Skip to content

Commit 3484e63

Browse files
committed
multiboot2: clippy fixes only needed for Rust 1.70
1 parent 3cb74b1 commit 3484e63

File tree

2 files changed

+2
-0
lines changed

2 files changed

+2
-0
lines changed

multiboot2-header/src/builder/header.rs

+1
Original file line numberDiff line numberDiff line change
@@ -255,6 +255,7 @@ impl HeaderBuilder {
255255
/// Adds information requests from the
256256
/// [`InformationRequestHeaderTagBuilder`] to the builder.
257257
#[must_use]
258+
#[allow(clippy::missing_const_for_fn)] // only in Rust 1.70 necessary
258259
pub fn information_request_tag(
259260
mut self,
260261
information_request_tag: InformationRequestHeaderTagBuilder,

multiboot2/src/lib.rs

+1
Original file line numberDiff line numberDiff line change
@@ -125,6 +125,7 @@ mod tests {
125125
/// This test is relevant to give library users flexebility in passing the
126126
/// struct around.
127127
#[test]
128+
#[allow(clippy::missing_const_for_fn)] // only in Rust 1.70 necessary
128129
fn boot_information_is_send_and_sync() {
129130
fn accept<T: Send + Sync>(_: T) {}
130131
let bytes = AlignedBytes([

0 commit comments

Comments
 (0)