diff --git a/backend/Cargo.lock b/backend/Cargo.lock index 0fa3032..ef7b258 100644 --- a/backend/Cargo.lock +++ b/backend/Cargo.lock @@ -10,7 +10,6 @@ dependencies = [ "config", "env_logger", "log", - "once_cell", "regex", "reqwest", "serde", diff --git a/backend/Cargo.toml b/backend/Cargo.toml index 1f0f99f..fe3ffcc 100644 --- a/backend/Cargo.toml +++ b/backend/Cargo.toml @@ -13,7 +13,6 @@ exclude = ["Dockerfile", "target/"] [dependencies] axum = "0.7.5" config = "0.14.0" -once_cell = "1.19.0" regex = { version = "1.10.5", features = ["std"] } reqwest = "0.12" serde = { version = "1.0", features = ["derive"] } diff --git a/backend/src/ogn/aprs/conversion.rs b/backend/src/ogn/aprs/conversion.rs index 502b96c..7fc1353 100644 --- a/backend/src/ogn/aprs/conversion.rs +++ b/backend/src/ogn/aprs/conversion.rs @@ -1,7 +1,6 @@ -use std::collections::HashMap; +use std::{collections::HashMap, sync::LazyLock}; use log::debug; -use once_cell::sync::Lazy; use regex::{Captures, Regex}; use crate::{ @@ -34,7 +33,7 @@ const FACTOR_FT_MIN_TO_M_SEC: f32 = 0.00508; /// Factor to convert "turns/2min" to "turns/min" const FACTOR_TURNS_TWO_MIN_TO_TURNS_MIN: f32 = 0.5; -static LINE_REGEX: Lazy = Lazy::new(|| Regex::new(LINE_PATTERN).unwrap()); +static LINE_REGEX: LazyLock = LazyLock::new(|| Regex::new(LINE_PATTERN).unwrap()); /// Tries converting an APRS line into a `Status` ///