Rustfmt driver-network and driver-block
This commit is contained in:
@@ -22,6 +22,8 @@ fmt common \
|
||||
graphics/vesad \
|
||||
graphics/virtio-gpud \
|
||||
inputd \
|
||||
net/driver-network \
|
||||
net/virtio-netd \
|
||||
pcid \
|
||||
storage/driver-block \
|
||||
virtio-core
|
||||
|
||||
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user