Commit e3920b10 authored by 只敲代码不玩耍,聪明baka也变傻ᗜˬᗜ's avatar 只敲代码不玩耍,聪明baka也变傻ᗜˬᗜ :man_dancing_tone1:
Browse files

fix code quality

Showing with 8 additions and 2 deletions
+8 -2
......@@ -6,6 +6,9 @@ impl_range_display!(PhysicalAddressRange);
impl PhysicalAddressRange {
pub fn to_high_virtual(&self) -> VirtualAddressRange {
VirtualAddressRange::from_start_end(self.start().to_high_virtual(), self.end().to_high_virtual())
VirtualAddressRange::from_start_end(
self.start().to_high_virtual(),
self.end().to_high_virtual(),
)
}
}
......@@ -8,7 +8,10 @@ impl_range_display!(VirtualAddressRange);
impl VirtualAddressRange {
pub fn to_low_physical(&self) -> PhysicalAddressRange {
PhysicalAddressRange::from_start_end(self.start().to_low_physical(), self.end().to_low_physical())
PhysicalAddressRange::from_start_end(
self.start().to_low_physical(),
self.end().to_low_physical(),
)
}
}
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment