gpg-rs / gpgme

GPGme bindings for Rust
GNU Lesser General Public License v2.1
83 stars 13 forks source link

Implement IntoData for ref mut slice #35

Closed timvisee closed 3 years ago

timvisee commented 3 years ago

This also implements IntoData for &mut [u8]. Useful when other bits return a &mut [u8] instead of &mut Vec<u8>.

Please validate whether this implementation is correct, I'm not 100% sure.

timvisee commented 3 years ago

Didn't notice the difference between from_seekable_reader and from_seekable_stream. It seems you've already fixed it. Great!