| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
Sorry, something went wrong.
lock.rs now exports both `LazyCell` and `LazyLock`:
- threading: re-exports from std::sync / core::cell
- non-threading: `LazyCell` from core::cell, `LazyLock` as
LazyCell wrapper with Sync (safe without threading)
📝 Walkthrough
WalkthroughThis change removes the Lazy alias and exposes LazyLock and LazyCell directly in the lock module, adds a LazyLock<T, F> wrapper with a Sync impl and helpers for non-threading builds, and updates many import sites to use rustpython_common::lock::LazyLock (or crate::common::lock::LazyLock). Changes
Estimated code review effort🎯 3 (Moderate) | ⏱️ ~25 minutes Possibly related PRs
Suggested reviewers
Poem🚥 Pre-merge checks | ✅ 2 | ❌ 1 ❌ Failed checks (1 warning)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ Finishing touches
No actionable comments were generated in the recent review. 🎉 🧹 Recent nitpick commentscrates/stdlib/src/ssl/oid.rs (1) Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. ❤️ ShareComment @coderabbitai help to get the list of available commands and usage tips. |
Sorry, something went wrong.
|
Code has been automatically formatted The code in this PR has been formatted using:
git pull origin lazylock |
Sorry, something went wrong.
| Back | FazBrowse Home | New Git URL |
lock.rs now exports both LazyCell and LazyLock:
Summary by CodeRabbit