Skip to content

Commit 10e6aeb

Browse files
AtsukiTaknicholasbishop
authored andcommitted
fix code format
1 parent 3e9fe48 commit 10e6aeb

File tree

1 file changed

+5
-9
lines changed

1 file changed

+5
-9
lines changed

src/table/boot.rs

Lines changed: 5 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -776,12 +776,10 @@ impl BootServices {
776776
}
777777
}
778778

779-
status.into_with_val(|| {
780-
ProtocolsPerHandle {
781-
boot_services: self,
782-
protocols: protocols as *mut &Guid,
783-
count,
784-
}
779+
status.into_with_val(|| ProtocolsPerHandle {
780+
boot_services: self,
781+
protocols: protocols as *mut &Guid,
782+
count,
785783
})
786784
}
787785

@@ -1428,9 +1426,7 @@ pub struct ProtocolsPerHandle<'a> {
14281426
impl<'a> Drop for ProtocolsPerHandle<'a> {
14291427
fn drop(&mut self) {
14301428
// Ignore the result, we can't do anything about an error here.
1431-
let _ = self
1432-
.boot_services
1433-
.free_pool(self.protocols as *mut u8);
1429+
let _ = self.boot_services.free_pool(self.protocols as *mut u8);
14341430
}
14351431
}
14361432

0 commit comments

Comments
 (0)