The device argument to VmFd.create_device() is not modified. With this, the argument does not need to be a mutable reference. This PR changes the device argument to an immutable reference and updates the tests + docs to reflect this change.
Although this is public facing, I wasn't sure if this required an entry in CHANGELOG.md. If this is approved and someone feels that it should be an entry, please let me know.
Summary of the PR
The
device
argument toVmFd.create_device()
is not modified. With this, the argument does not need to be a mutable reference. This PR changes thedevice
argument to an immutable reference and updates the tests + docs to reflect this change.Although this is public facing, I wasn't sure if this required an entry in CHANGELOG.md. If this is approved and someone feels that it should be an entry, please let me know.