openSUSE / libpathrs

C-friendly API to make path resolution safer on Linux.
GNU Lesser General Public License v3.0
83 stars 6 forks source link

*: migrate from lazy_static! to once_cell::sync::Lazy #89

Closed cyphar closed 1 month ago

cyphar commented 1 month ago

Ideally we would switch to std::sync::LazyLock but that was only stabilised in Rust 1.80.0, so we have to make do with once_cell. At least once_cell has basically the same API as the merged-into-std API, so we can switch over very easily.

Signed-off-by: Aleksa Sarai cyphar@cyphar.com