Skip to content

Commit 1257435

Browse files
committed
Fix formatting
1 parent c55631b commit 1257435

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

mythril/src/ioapic.rs

+5-3
Original file line numberDiff line numberDiff line change
@@ -16,8 +16,8 @@ use crate::acpi::madt::{Ics, MADT};
1616
use crate::error::{Error, Result};
1717
use crate::lock::ro_after_init::RoAfterInit;
1818
use core::convert::TryFrom;
19-
use core::ops::Range;
2019
use core::fmt;
20+
use core::ops::Range;
2121
use core::ptr;
2222

2323
use arrayvec::ArrayVec;
@@ -288,8 +288,10 @@ impl IoApic {
288288
/// convenience function to get a Range of the interrupt vectors
289289
/// that should be associated with this IoApic.
290290
pub fn get_ivec_range(&self) -> Range<u32> {
291-
return Range{ start: self.gsi_base, end: self.gsi_base +
292-
(self.max_redirection_entry() as u32) };
291+
return Range {
292+
start: self.gsi_base,
293+
end: self.gsi_base + (self.max_redirection_entry() as u32),
294+
};
293295
}
294296
}
295297

0 commit comments

Comments
 (0)