summary refs log tree commit diff
diff options
context:
space:
mode:
-rw-r--r--src/crosvm.rs2
-rw-r--r--vhost/src/net.rs2
-rw-r--r--vhost/src/vsock.rs2
3 files changed, 3 insertions, 3 deletions
diff --git a/src/crosvm.rs b/src/crosvm.rs
index b7055df..649b0fe 100644
--- a/src/crosvm.rs
+++ b/src/crosvm.rs
@@ -17,7 +17,7 @@ use std::path::PathBuf;
 
 use devices::SerialParameters;
 
-static SECCOMP_POLICY_DIR: &'static str = "/usr/share/policy/crosvm";
+static SECCOMP_POLICY_DIR: &str = "/usr/share/policy/crosvm";
 
 /// Indicates the location and kind of executable kernel for a VM.
 #[derive(Debug)]
diff --git a/vhost/src/net.rs b/vhost/src/net.rs
index 0f1cd86..17ea91a 100644
--- a/vhost/src/net.rs
+++ b/vhost/src/net.rs
@@ -14,7 +14,7 @@ use sys_util::{ioctl_with_ref, GuestMemory};
 
 use super::{ioctl_result, Error, Result, Vhost};
 
-static DEVICE: &'static str = "/dev/vhost-net";
+static DEVICE: &str = "/dev/vhost-net";
 
 /// Handle to run VHOST_NET ioctls.
 ///
diff --git a/vhost/src/vsock.rs b/vhost/src/vsock.rs
index 8c96b9f..f453027 100644
--- a/vhost/src/vsock.rs
+++ b/vhost/src/vsock.rs
@@ -12,7 +12,7 @@ use virtio_sys::{VHOST_VSOCK_SET_GUEST_CID, VHOST_VSOCK_SET_RUNNING};
 
 use super::{ioctl_result, Error, Result, Vhost};
 
-static DEVICE: &'static str = "/dev/vhost-vsock";
+static DEVICE: &str = "/dev/vhost-vsock";
 
 /// Handle for running VHOST_VSOCK ioctls.
 pub struct Vsock {