paths: Replace lazy_static! with OnceLock (#13213)

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

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

The paths are now exposed as accessor functions that reference a private
static value.

Release Notes:

- N/A
This commit is contained in:
Marshall Bowers
2024-06-18 12:22:37 -04:00
committed by GitHub
parent ba59e66314
commit 81475ac4cd
27 changed files with 320 additions and 170 deletions
Generated
-1
View File
@@ -7399,7 +7399,6 @@ name = "paths"
version = "0.1.0"
dependencies = [
"dirs 4.0.0",
"lazy_static",
"util",
]