Skip to content

Commit c40c19f

Browse files
Check formatting
1 parent b0c5b4e commit c40c19f

File tree

3 files changed

+4
-8
lines changed

3 files changed

+4
-8
lines changed

common/src/framebuffer.rs

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,5 @@
11
use bootloader_api::info::{FrameBufferInfo, PixelFormat};
2-
use core::{
3-
fmt::self,
4-
ptr,
5-
};
2+
use core::{fmt, ptr};
63
use font_constants::BACKUP_CHAR;
74
use noto_sans_mono_bitmap::{
85
get_raster, get_raster_width, FontWeight, RasterHeight, RasterizedChar,

common/src/lib.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,15 +22,15 @@ use xmas_elf::ElfFile;
2222

2323
/// Provides a function to gather entropy and build a RNG.
2424
mod entropy;
25+
/// Provides a type that logs output as text to pixel-based framebuffers.
26+
pub mod framebuffer;
2527
mod gdt;
2628
/// Provides a frame allocator based on a BIOS or UEFI memory map.
2729
pub mod legacy_memory_region;
2830
/// Provides a type to keep track of used entries in a level 4 page table.
2931
pub mod level_4_entries;
3032
/// Implements a loader for the kernel ELF binary.
3133
pub mod load_kernel;
32-
/// Provides a type that logs output as text to pixel-based framebuffers.
33-
pub mod framebuffer;
3434
/// Provides a logger that logs output as text in various formats.
3535
pub mod logger;
3636

common/src/logger.rs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
use crate::framebuffer::FrameBufferWriter;
22
use bootloader_api::info::FrameBufferInfo;
3-
use core::fmt::Write;
43
use conquer_once::spin::OnceCell;
4+
use core::fmt::Write;
55
use spinning_top::Spinlock;
66

77
/// The global logger instance used for the `log` crate.
@@ -37,4 +37,3 @@ impl log::Log for LockedLogger {
3737

3838
fn flush(&self) {}
3939
}
40-

0 commit comments

Comments
 (0)