vhbit / lmdb-rs

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

api: Use AsRef<Path> instead of &Path #41

Closed posborne closed 7 years ago

posborne commented 7 years ago

This matches the convention used in std and makes the API simpler when calling open() as you can just provide a &str or String and it will be converted into a &Path autmmatically. This change is backwards compatible, so a full semver bump should not be required.

You can see this pattern in std in a number of places:

vhbit commented 7 years ago

Thanks, merged as ee2ff8a81ab379943000d77eca164cdd853a4545