Skip to content

Commit 0924dec

Browse files
committed
Changed error message to be const
1 parent 114e570 commit 0924dec

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

memflow-kvm/src/lib.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ impl<'a> KVMMapData<&'a mut [u8]> {
4444
pub fn create_connector<'a>(
4545
args: &ConnectorArgs,
4646
) -> Result<MappedPhysicalMemory<&'a mut [u8], KVMMapData<&'a mut [u8]>>> {
47-
static ERROR_UNABLE_TO_READ_MEMORY: &str = "Could not access the memflow device at /dev/memflow. Please make sure that you installed the dkms module properly and that it is loaded via `modprobe memflow`. Also ensure that you have read and write access to /dev/memflow. For further information check the Readme at https://github.com/memflow/memflow-kvm";
47+
const ERROR_UNABLE_TO_READ_MEMORY: &str = "Could not access the memflow device at /dev/memflow. Please make sure that you installed the dkms module properly and that it is loaded via `modprobe memflow`. Also ensure that you have read and write access to /dev/memflow. For further information check the readme at https://github.com/memflow/memflow-kvm";
4848

4949
let pid = match &args.target {
5050
Some(pidstr) => Some(

0 commit comments

Comments
 (0)