chore: Rust 1.79と1.80で追加された機能を利用する #816
Merged
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
内容
#771 ぶりに、Rust 1.79およびRust 1.80に追加された機能を使うリファクタを行います。
LazyLock
NonNull::*
<[[T; N]]>::as_flattened
if
とmatch
でのライフタイム延長associated_type_bounds
なし (refactor:
cstr!("…")
をc"…"
に置き換える #782 があるけど、cbindgenのリリース(最新が11ヶ月前)が出ないと動けない)もっと遡るのも考えたのですが、沼りそうだし飽きたので1.79までに留めました。
関連 Issue
その他
各変更は別個のコミットにまとめます。draftを外すまで、force pushをしてブランチを破壊します。
[追記1]
結局force pushはしませんでした…[追記2] しました