util: Replace lazy_static! with OnceLock (#13215)

This PR replaces the `lazy_static!` usages in the `util` crate with
`OnceLock` from the standard library.

This allows us to drop the `lazy_static` dependency from this crate.

Release Notes:

- N/A
This commit is contained in:
Marshall Bowers 2024-06-18 12:44:58 -04:00 committed by GitHub
parent 41180b8d81
commit 01b836a191
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
6 changed files with 29 additions and 24 deletions

View file

@ -22,7 +22,6 @@ dirs.workspace = true
futures.workspace = true
git2 = { workspace = true, optional = true }
globset.workspace = true
lazy_static.workspace = true
log.workspace = true
rand.workspace = true
regex.workspace = true