Skip to content

Use ptr::cast for *const castingΒ #829

@tcharding

Description

@tcharding

Since Rust 1.38 we have been able to do ptr as *const T using ptr::cast. Lets do so. We cannot use cast_mut because it requires 1.65.

ref: https://doc.rust-lang.org/std/primitive.pointer.html#method.cast

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions