diff options
Diffstat (limited to 'src/modules/uptime.rs')
| -rw-r--r-- | src/modules/uptime.rs | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/modules/uptime.rs b/src/modules/uptime.rs index 67161c5..365c234 100644 --- a/src/modules/uptime.rs +++ b/src/modules/uptime.rs @@ -16,10 +16,11 @@ // Copyright (C) 2022-2022 Fuwn <[email protected]> // SPDX-License-Identifier: GPL-3.0-only -use once_cell::sync::Lazy; +use std::sync::LazyLock; + use tokio::time::Instant; -static UPTIME: Lazy<Instant> = Lazy::new(Instant::now); +static UPTIME: LazyLock<Instant> = LazyLock::new(Instant::now); pub fn module(router: &mut windmark::Router) { UPTIME.elapsed(); |