Ver código fonte

ci: fix + revert of 1ebc752e

Philipp Schuster 2 anos atrás
pai
commit
8353db2e1f

+ 1 - 1
.github/workflows/rust.yml

@@ -65,7 +65,7 @@ jobs:
     strategy:
       matrix:
         rust:
-          - stable
+          - 1.52.1 # MSVR
     steps:
       - uses: actions/checkout@v2
       # Important preparation step: override the latest default Rust version in GitHub CI

+ 3 - 1
multiboot2-header/src/builder/information_request.rs

@@ -21,7 +21,8 @@ pub struct InformationRequestHeaderTagBuilder {
 #[cfg(feature = "builder")]
 impl InformationRequestHeaderTagBuilder {
     /// New builder.
-    pub const fn new(flag: HeaderTagFlag) -> Self {
+    #[allow(clippy::missing_const_for_fn)] // TODO remove once MSRV is higher than 1.52.1
+    pub fn new(flag: HeaderTagFlag) -> Self {
         Self {
             irs: BTreeSet::new(),
             flag,
@@ -30,6 +31,7 @@ impl InformationRequestHeaderTagBuilder {
 
     /// Returns the expected length of the information request tag,
     /// when the `build`-method gets called.
+    #[allow(clippy::missing_const_for_fn)] // TODO remove once MSRV is higher than 1.52.1
     pub fn expected_len(&self) -> usize {
         let basic_header_size = size_of::<InformationRequestHeaderTag<0>>();
         let req_tags_size = self.irs.len() * size_of::<MbiTagType>();

+ 2 - 1
multiboot2-header/src/header.rs

@@ -47,7 +47,8 @@ impl<'a> Multiboot2Header<'a> {
         assert_eq!(
             reference.header_magic(),
             MULTIBOOT2_HEADER_MAGIC,
-            "The Multiboot2 header must contain the MULTIBOOT2_HEADER_MAGIC={MULTIBOOT2_HEADER_MAGIC:x}"
+            "The Multiboot2 header must contain the MULTIBOOT2_HEADER_MAGIC={:x}",
+            MULTIBOOT2_HEADER_MAGIC
         );
         assert!(
             reference.verify_checksum(),

+ 1 - 0
multiboot2/src/framebuffer.rs

@@ -39,6 +39,7 @@ pub enum FramebufferType<'a> {
 
     /// Direct RGB color.
     #[allow(missing_docs)]
+    #[allow(clippy::upper_case_acronyms)]
     RGB {
         red: FramebufferField,
         green: FramebufferField,

+ 1 - 0
multiboot2/src/vbe_info.rs

@@ -330,6 +330,7 @@ bitflags! {
 #[derive(Debug, PartialEq, Eq, Copy, Clone)]
 #[repr(u8)]
 #[allow(missing_docs)]
+#[allow(clippy::upper_case_acronyms)]
 pub enum VBEMemoryModel {
     Text = 0x00,
     CGAGraphics = 0x01,