Repository navigation
refactor: Replace std::num and std::cmp with core::num and core::cmp - #1276
Conversation
There was a problem hiding this comment.
This PR replaces std::num and std::cmp with their core:: equivalents across several files, alongside a CI runner change and a workflow trigger fix. All changes are reviewed and no blocking defects were found.
Summary of changes:
benches/deflate_alloc.rs,src/write.rs,tests/write_parallel.rs:std::num::NonZeroUsize→core::num::NonZeroUsizesrc/datetime.rs,tests/eocd_complexity_distinct_offsets.rs:std::cmp::Ordering→core::cmp::Orderingsrc/read/readers.rs:std::cmp::min→core::cmp::minsrc/write.rs:std::marker::PhantomData→core::marker::PhantomData.github/workflows/ci.yml: Runner changed fromubuntu-latesttoubuntu-slim.github/workflows/size_labels.yml: Trigger changed frompull_request_targettopull_request
All Rust std::* → core::* substitutions are functionally identical since std re-exports core items. The workflow trigger change from pull_request_target to pull_request is actually a security improvement: pull_request_target grants the workflow repository-level write permissions even when triggered from a fork, which is unnecessary for a labeling action. The PR is clean and ready to merge pending CI confirmation.
You can now have the agent implement changes and create commits directly on your pull request's source branch. Simply comment with /q followed by your request in natural language to ask the agent to make changes.
|
Hey @Pr0methean, heads up on the It wasn't caused by #1275 — it's from the unformatted lines in - let Some(stem) = name
- .split(['.', ':'])
- .next() else {
+ let Some(stem) = name.split(['.', ':']).next() else {Reverting #1275 doesn't fix If you drop the revert commit and just run |
0fd7b16 to
adc9ac9
Compare
And doc/CI fixes.
Open in [code]smith · Need help on this PR? Tag
@codesmith-botwith what you need.