Commit 9d08fbf
committed
fix(server-rust): drop unnecessary u32 cast on splice flags (Linux clippy)
`clippy -D warnings` failed on Linux at src/engine_raw.rs:630 and :666:
`(SPLICE_F_MOVE | SPLICE_F_MORE) as u32` is an unnecessary cast — the flags are
already `c_uint` (u32) and `libc::splice`'s flags param is `c_uint`. macOS doesn't
compile this Linux-only splice path, so local clippy didn't catch it. Verified the
Linux compile still builds (Docker).1 parent 2d648fc commit 9d08fbf
1 file changed
Lines changed: 2 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
627 | 627 | | |
628 | 628 | | |
629 | 629 | | |
630 | | - | |
| 630 | + | |
631 | 631 | | |
632 | 632 | | |
633 | 633 | | |
| |||
663 | 663 | | |
664 | 664 | | |
665 | 665 | | |
666 | | - | |
| 666 | + | |
667 | 667 | | |
668 | 668 | | |
669 | 669 | | |
| |||
0 commit comments