Browse Source

multiboot2: clippy fixes only needed for Rust 1.70

Philipp Schuster 8 months ago
parent
commit
3484e63022
2 changed files with 2 additions and 0 deletions
  1. 1 0
      multiboot2-header/src/builder/header.rs
  2. 1 0
      multiboot2/src/lib.rs

+ 1 - 0
multiboot2-header/src/builder/header.rs

@@ -255,6 +255,7 @@ impl HeaderBuilder {
     /// Adds information requests from the
     /// [`InformationRequestHeaderTagBuilder`] to the builder.
     #[must_use]
+    #[allow(clippy::missing_const_for_fn)] // only in Rust 1.70 necessary
     pub fn information_request_tag(
         mut self,
         information_request_tag: InformationRequestHeaderTagBuilder,

+ 1 - 0
multiboot2/src/lib.rs

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