Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge rust-bitcoin#3855: io: Use get_ref / get_mut API
12a83e1 api: Run just check-api (Tobin C. Harding) 88dfd4e io: Use get_ref / get_mut API (Tobin C. Harding) b7fdb35 io: Move constructors (Tobin C. Harding) Pull request description: Currently in the `bridge` module to get a reference and mutable reference we provide the `as_inner` and `inner_mut` functions. These names are not in line with the `std::io` module which favours `get_ref` and `get_mut`. Add inherent functions `get_ref` and `get_mut` for accessing the wrapped value in `bridge::ToStd` and deprecate `as_inner` and `inner_mut`. To convince yourself this API is correct grep the stdlib `io` module for `fn get_ref` as opposed to `fn as_ref`. Patch 1 is a trivial code move cleanup. Close: rust-bitcoin#3832 ACKs for top commit: apoelstra: ACK 12a83e1; successfully ran local tests Tree-SHA512: a5ebd806a4914aca050746ffca4930dc0a5bbeffd0d2fdb000af3bebd4d932cb08ec68acd18cd0a8a9cecf3cb7a211e066ebfd2fd62aaf40c5b4b5348e39e6d4
- Loading branch information