Skip to content

Conversation

@jdm
Copy link
Member

@jdm jdm commented Dec 19, 2025

 Warning: warning: use of `offset` with a `usize` casted to an `isize`
  --> tendril/src/util.rs:27:13
   |
27 |     *dest = dest.offset(src.len() as isize)
   |             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
   |
   = help: for further information visit https://rust-lang.github.io/rust-clippy/rust-1.92.0/index.html#ptr_offset_with_cast
   = note: `#[warn(clippy::ptr_offset_with_cast)]` on by default
help: use `add` instead
   |
27 -     *dest = dest.offset(src.len() as isize)
27 +     *dest = dest.add(src.len())
   |

Signed-off-by: Josh Matthews <[email protected]>
@jdm jdm added this pull request to the merge queue Dec 19, 2025
Merged via the queue into main with commit b635d51 Dec 19, 2025
8 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants