rust-mobile / ndk

Rust bindings to the Android NDK
Apache License 2.0
1.11k stars 110 forks source link

ndk/bitmap: Add missing `# Safety` docs to satisfy Rust 1.74 lint #448

Closed MarijnS95 closed 9 months ago

MarijnS95 commented 9 months ago

clippy::missing_safety_doc is turned on by default but didn't catch one unsafe function; that seems to have been fixed in Rust 1.74, for which we should add the missing reason why compress_raw() is annotated as unsafe.