You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Resolve all remaining warnings and fix build with --all-targets
Makes the `panic` implementations conditional to fix errors when building with `cargo check --all-targets --all`. This also fixes the remaining rust-analyzer errors.
Copy file name to clipboardExpand all lines: common/src/lib.rs
+12-1Lines changed: 12 additions & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -447,7 +447,18 @@ where
447
447
letmut info = BootInfo::new(memory_regions.into());
448
448
info.framebuffer = mappings
449
449
.framebuffer
450
-
.map(|addr| FrameBuffer::new(addr.as_u64(), system_info.framebuffer.expect("there shouldn't be a mapping for the framebuffer if there is not framebuffer").info))
450
+
.map(|addr| unsafe{
451
+
FrameBuffer::new(
452
+
addr.as_u64(),
453
+
system_info
454
+
.framebuffer
455
+
.expect(
456
+
"there shouldn't be a mapping for the framebuffer if there is \
0 commit comments