mirror of
https://github.com/phil-opp/blog_os.git
synced 2025-12-16 14:27:49 +00:00
Apply rustfmt to ListNode::new function
This commit is contained in:
@@ -8,10 +8,7 @@ struct ListNode {
|
|||||||
|
|
||||||
impl ListNode {
|
impl ListNode {
|
||||||
const fn new(size: usize) -> Self {
|
const fn new(size: usize) -> Self {
|
||||||
ListNode {
|
ListNode { size, next: None }
|
||||||
size,
|
|
||||||
next: None,
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
fn start_addr(&self) -> usize {
|
fn start_addr(&self) -> usize {
|
||||||
|
|||||||
Reference in New Issue
Block a user