rust-mobile / ndk

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

bitmap: Strip off repeated `Android` prefix from structs and enums #430

Closed MarijnS95 closed 11 months ago

MarijnS95 commented 12 months ago

This convention is already applied to (Android)BitmapError and (Android)BitmapFormat, and to many other A-prefixed structs elsewhere in the ndk crate: there is no need to repeat the Android prefix or letter when describing strucures and enumerations.

Also strip off the Bitmap prefix in a Result alias, which isn't common either when only filling in a default for the generic Error argument.