archlinux / alpm.rs

Rust bindings for libalpm
GNU General Public License v3.0
112 stars 21 forks source link

Cleanups #29

Closed WhyNotHugo closed 2 years ago

WhyNotHugo commented 2 years ago

Why do traits need to be defined as pub unsafe trait? Isn't declaring the function unsafe fn enough?

Morganamilo commented 2 years ago

The traits are not meant to be implemented by any one outside the crate. It's extra incentive for users to not go near it. Also some of the traits have safe functions.

WhyNotHugo commented 2 years ago

Thanks!