[PATCH v7 3/7] rust: enable `clippy::ptr_cast_constness` lint