Skip to content

Commit

Permalink
chore(backend): Removed once_cell
Browse files Browse the repository at this point in the history
...as it is unnecessary with Rust 1.80.0
  • Loading branch information
its-laika committed Jul 25, 2024
1 parent a0e21ac commit 2d90787
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 5 deletions.
1 change: 0 additions & 1 deletion backend/Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 0 additions & 1 deletion backend/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -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"] }
Expand Down
5 changes: 2 additions & 3 deletions backend/src/ogn/aprs/conversion.rs
Original file line number Diff line number Diff line change
@@ -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::{
Expand Down Expand Up @@ -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<Regex> = Lazy::new(|| Regex::new(LINE_PATTERN).unwrap());
static LINE_REGEX: LazyLock<Regex> = LazyLock::new(|| Regex::new(LINE_PATTERN).unwrap());

/// Tries converting an APRS line into a `Status`
///
Expand Down

0 comments on commit 2d90787

Please sign in to comment.