commit | ce7ab9a78889d17ce471b999dde3a9aff71d537a | [log] [tgz] |
---|---|---|
author | Luca Stefani <luca.stefani.ge1@gmail.com> | Mon Jan 22 19:07:38 2024 +0100 |
committer | Luca Stefani <luca.stefani.ge1@gmail.com> | Mon Jan 22 19:10:19 2024 +0100 |
tree | 61cadc792b487b06b072b9d65669220300792b7a | |
parent | b0bb4d345b84141954d8f6e92603891a030ce70c [diff] |
Replace lazy_static with once_cell Using lazy_static is now discouraged as unmaintained and once_cell is the recommended replacement. On top of that a similar implementation found in once_cell is being tracked for inclusion under the `lazy_cell` feature gate [0] Also there's no need to lazy init the Timestamp Context as it's const. [0] https://github.com/rust-lang/rust/issues/109736 Test: m libprofcollectd Change-Id: I6314a47519b87e027005ccb6173a742a18050305