diff options
| author | Aiden Fox Ivey <aiden.foxivey@shopify.com> | 2025-04-04 10:37:21 -0400 |
|---|---|---|
| committer | Takashi Kokubun <takashikkbn@gmail.com> | 2025-04-18 21:53:01 +0900 |
| commit | 31106afdce97313d3598457f1f5b422a04c4af86 (patch) | |
| tree | 1d6f95681c554cdb51a29aebdf31534b665925f7 /node.c | |
| parent | 14f0b83d3626d11efb78d5ba4a2c0b012139ff76 (diff) | |
Add miscellaneous Clippy 'corrections' pt. 2 (https://github.com/Shopify/zjit/pull/95)
* Remove immediately deferenced borrow operators
source: https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrow
* Remove unnecessary cast as i64
Since Const::CInt64 wraps i64, it is unnecessary to cast to i64.
* Remove unnecessary borrow operators
* Beautify assign operation syntax
* Use .is_null() convenience method
* Omit .into() call from u32 to u32
* Use more descriptive std::ptr::null<VALUE>()
In lieu of casting a literal as a type, opt to use the convenience type.
* Use sized integer literal
* Simplify pattern matching to explicit check
Notes
Notes:
Merged: https://github.com/ruby/ruby/pull/13131
Diffstat (limited to 'node.c')
0 files changed, 0 insertions, 0 deletions
