summary refs log tree commit diff stats
path: root/rust/qemu-api/src/timer.rs
diff options
context:
space:
mode:
Diffstat (limited to 'rust/qemu-api/src/timer.rs')
-rw-r--r--rust/qemu-api/src/timer.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/rust/qemu-api/src/timer.rs b/rust/qemu-api/src/timer.rs
index 0a2d111d49..0daec62f92 100644
--- a/rust/qemu-api/src/timer.rs
+++ b/rust/qemu-api/src/timer.rs
@@ -39,7 +39,7 @@ impl Timer {
     ///
     /// The timer must be initialized before it is armed with
     /// [`modify`](Self::modify).
-    pub unsafe fn new() -> Self {
+    pub const unsafe fn new() -> Self {
         // SAFETY: requirements relayed to callers of Timer::new
         Self(unsafe { Opaque::zeroed() })
     }