Skip to content

Conversation

dmikushin
Copy link

Hi, thanks for your hard work on cameleon, this is a great project!

This trivial PR fixes an error occured during my compilation, possibly with a newer version of Rust compiler:

245 |                 std::ptr::copy_nonoverlapping(self.as_ptr().cast::<i8>(), dst, self.len());
    |                 -----------------------------                             ^^^ expected `*mut i8`, found `*mut u8`
    |                 |
    |                 arguments to this function are incorrect

Changelog

  • Using a proper type casting from *mut u8 to *mut i8 in std::ptr::copy_nonoverlapping.

245 |                 std::ptr::copy_nonoverlapping(self.as_ptr().cast::<i8>(), dst, self.len());
    |                 -----------------------------                             ^^^ expected `*mut i8`, found `*mut u8`
    |                 |
    |                 arguments to this function are incorrect
Co-authored-by: Matěj Laitl <matej@laitl.cz>
@bschwind
Copy link
Contributor

bschwind commented Mar 6, 2025

This probably now just needs another code formatting run, and a rebase on the latest main

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