Rustfmt driver-network and driver-block

This commit is contained in:
bjorn3
2024-07-20 15:49:18 +02:00
parent 4d0008a32b
commit 7eceaaa2bd
2 changed files with 4 additions and 7 deletions
+2
View File
@@ -22,6 +22,8 @@ fmt common \
graphics/vesad \
graphics/virtio-gpud \
inputd \
net/driver-network \
net/virtio-netd \
pcid \
storage/driver-block \
virtio-core
+2 -7
View File
@@ -126,13 +126,8 @@ impl DiskWrapper {
}
}
};
let bytes_read = block_read(
self.offset,
blksize,
buf,
self.block_bytes,
read_block,
)?;
let bytes_read =
block_read(self.offset, blksize, buf, self.block_bytes, read_block)?;
self.offset += bytes_read as u64;
Ok(bytes_read)