Skip to content

Commit a675195

Browse files
authored
Merge pull request #530 from Freax13/fix/warnings-2025-01-19
fix warnings & remove broken CI job
2 parents 59ac07c + 1d1bcc2 commit a675195

File tree

4 files changed

+5
-5
lines changed

4 files changed

+5
-5
lines changed

.github/workflows/build.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ jobs:
4747
strategy:
4848
fail-fast: false
4949
matrix:
50-
platform: [ubuntu-latest, macos-12, macos-latest, windows-latest]
50+
platform: [ubuntu-latest, macos-latest, windows-latest]
5151

5252
runs-on: ${{ matrix.platform }}
5353
timeout-minutes: 15

src/registers/segmentation.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,7 @@ impl SegmentSelector {
7676
/// * `rpl`: the requested privilege level
7777
#[inline]
7878
pub const fn new(index: u16, rpl: PrivilegeLevel) -> SegmentSelector {
79-
SegmentSelector(index << 3 | (rpl as u16))
79+
SegmentSelector((index << 3) | (rpl as u16))
8080
}
8181

8282
/// Can be used as a selector into a non-existent segment and assigned to segment registers,

src/registers/xcontrol.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@ mod x86_64 {
7373
out("rax") low, out("rdx") high,
7474
options(nomem, nostack, preserves_flags),
7575
);
76-
(high as u64) << 32 | (low as u64)
76+
((high as u64) << 32) | (low as u64)
7777
}
7878
}
7979

src/structures/idt.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -844,8 +844,8 @@ impl<F> Entry<F> {
844844
#[inline]
845845
pub fn handler_addr(&self) -> VirtAddr {
846846
let addr = self.pointer_low as u64
847-
| (self.pointer_middle as u64) << 16
848-
| (self.pointer_high as u64) << 32;
847+
| ((self.pointer_middle as u64) << 16)
848+
| ((self.pointer_high as u64) << 32);
849849
// addr is a valid VirtAddr, as the pointer members are either all zero,
850850
// or have been set by set_handler_addr (which takes a VirtAddr).
851851
VirtAddr::new_truncate(addr)

0 commit comments

Comments
 (0)