vhbit / lmdb-rs

Rust bindings for LMDB
MIT License
114 stars 47 forks source link

Add missing Debug impl for pub types #47

Closed cmbrandenburg closed 7 years ago

cmbrandenburg commented 7 years ago

Is there a reason so many public types don't implement the Debug trait? One downside of the missing impls is the extra work needed in dependent crates to implement Debug for their own types that contain lmdb-rs types.

This pull request adds a Debug implementation for every public type in lmdb-rs, as well as for a couple of private types that are contained within some of those public types.

vhbit commented 7 years ago

@cmbrandenburg thanks!

Is there a reason so many public types don't implement the Debug trait?

Nope, there was no necessity in it until now.