File tree Expand file tree Collapse file tree 4 files changed +7
-6
lines changed Expand file tree Collapse file tree 4 files changed +7
-6
lines changed Original file line number Diff line number Diff line change @@ -94,6 +94,7 @@ implicit_clone = "warn"
94
94
inconsistent_struct_constructor = " warn"
95
95
manual_assert = " warn"
96
96
manual_let_else = " warn"
97
+ match_same_arms = " warn"
97
98
match_wildcard_for_single_variants = " warn"
98
99
ptr_as_ptr = " warn"
99
100
ptr_cast_constness = " warn"
Original file line number Diff line number Diff line change @@ -108,8 +108,9 @@ pub fn init_drivers() {
108
108
109
109
// TODO: Determine correct context via devicetree and allow more than one context
110
110
match PLATFORM_MODEL {
111
- Model :: Virt => init_plic ( plic_region. starting_address as usize , 1 ) ,
112
- Model :: Unknown => init_plic ( plic_region. starting_address as usize , 1 ) ,
111
+ Model :: Virt | Model :: Unknown => {
112
+ init_plic ( plic_region. starting_address as usize , 1 ) ;
113
+ }
113
114
Model :: Fux40 => init_plic ( plic_region. starting_address as usize , 2 ) ,
114
115
}
115
116
}
Original file line number Diff line number Diff line change @@ -82,8 +82,8 @@ pub fn is_uhyve_with_pci() -> bool {
82
82
83
83
pub fn args ( ) -> Option < & ' static str > {
84
84
match env:: boot_info ( ) . platform_info {
85
- PlatformInfo :: Multiboot { command_line, .. } => command_line ,
86
- PlatformInfo :: LinuxBootParams { command_line, .. } => command_line,
85
+ PlatformInfo :: Multiboot { command_line, .. }
86
+ | PlatformInfo :: LinuxBootParams { command_line, .. } => command_line,
87
87
_ => None ,
88
88
}
89
89
}
Original file line number Diff line number Diff line change @@ -673,8 +673,7 @@ pub fn init_device(
673
673
warn ! { "No PHY address provided. Trying to find PHY ..." }
674
674
for i in 0 ..32 {
675
675
match phy_read ( gem, i, PhyReg :: Control ) {
676
- 0xffff => ( ) , //Invalid
677
- 0x0 => ( ) , //Invalid
676
+ 0xffff | 0x0 => ( ) , //Invalid
678
677
_ => {
679
678
phy_addr = i;
680
679
warn ! ( "PHY found with address {phy_addr}" ) ;
You can’t perform that action at this time.
0 commit comments