Commit 14614045 authored by Jeremy Soller's avatar Jeremy Soller

Remove unnecessary unsafe

parent 0897ddff
......@@ -89,7 +89,7 @@ fn main() {
}
}
}
string.push('\n');
print!("{}", string);
......@@ -128,12 +128,10 @@ fn main() {
let mut command = Command::new(program);
for arg in args {
let bar_arg = |i| -> String {
unsafe {
match PciBar::from(header.bars[i]) {
PciBar::None => String::new(),
PciBar::Memory(address) => format!("{:>08X}", address),
PciBar::Port(address) => format!("{:>04X}", address)
}
match PciBar::from(header.bars[i]) {
PciBar::None => String::new(),
PciBar::Memory(address) => format!("{:>08X}", address),
PciBar::Port(address) => format!("{:>04X}", address)
}
};
let arg = unsafe {
......
Markdown is supported
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