Skip to content

Commit acb2be2

Browse files
committed
ci: fix + revert of 1ebc752
1 parent f71aedc commit acb2be2

File tree

5 files changed

+6
-3
lines changed

5 files changed

+6
-3
lines changed

.github/workflows/rust.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@ jobs:
6565
strategy:
6666
matrix:
6767
rust:
68-
- stable
68+
- 1.52.1 # MSVR
6969
steps:
7070
- uses: actions/checkout@v2
7171
# Important preparation step: override the latest default Rust version in GitHub CI

multiboot2-header/src/builder/information_request.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ pub struct InformationRequestHeaderTagBuilder {
2121
#[cfg(feature = "builder")]
2222
impl InformationRequestHeaderTagBuilder {
2323
/// New builder.
24-
pub const fn new(flag: HeaderTagFlag) -> Self {
24+
pub fn new(flag: HeaderTagFlag) -> Self {
2525
Self {
2626
irs: BTreeSet::new(),
2727
flag,

multiboot2-header/src/header.rs

+2-1
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,8 @@ impl<'a> Multiboot2Header<'a> {
4747
assert_eq!(
4848
reference.header_magic(),
4949
MULTIBOOT2_HEADER_MAGIC,
50-
"The Multiboot2 header must contain the MULTIBOOT2_HEADER_MAGIC={MULTIBOOT2_HEADER_MAGIC:x}"
50+
"The Multiboot2 header must contain the MULTIBOOT2_HEADER_MAGIC={:x}",
51+
MULTIBOOT2_HEADER_MAGIC
5152
);
5253
assert!(
5354
reference.verify_checksum(),

multiboot2/src/framebuffer.rs

+1
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,7 @@ pub enum FramebufferType<'a> {
3939

4040
/// Direct RGB color.
4141
#[allow(missing_docs)]
42+
#[allow(clippy::upper_case_acronyms)]
4243
RGB {
4344
red: FramebufferField,
4445
green: FramebufferField,

multiboot2/src/vbe_info.rs

+1
Original file line numberDiff line numberDiff line change
@@ -330,6 +330,7 @@ bitflags! {
330330
#[derive(Debug, PartialEq, Eq, Copy, Clone)]
331331
#[repr(u8)]
332332
#[allow(missing_docs)]
333+
#[allow(clippy::upper_case_acronyms)]
333334
pub enum VBEMemoryModel {
334335
Text = 0x00,
335336
CGAGraphics = 0x01,

0 commit comments

Comments
 (0)