Run cargo fmt

This commit is contained in:
Joakim Frostegård 2023-04-10 01:05:23 +02:00
parent e237f76ca7
commit 4dba6f92cd

View file

@ -743,11 +743,9 @@ impl RawBufRing {
// Future: move to separate public function so other buf_ring implementations // Future: move to separate public function so other buf_ring implementations
// can register, and unregister, the same way. // can register, and unregister, the same way.
let res = CurrentRing::with(|ring| { let res = CurrentRing::with(|ring| unsafe {
unsafe { ring.submitter()
ring.submitter() .register_buf_ring(self.ring_addr as _, self.ring_entries(), bgid)
.register_buf_ring(self.ring_addr as _, self.ring_entries(), bgid)
}
}); });
// println!("{}:{}: res {:?}", file!(), line!(), res); // println!("{}:{}: res {:?}", file!(), line!(), res);