Skip to content

Commit acc8d02

Browse files
committed
Merge rust-bitcoin#5064: fix: FromStd::inner_mut deprecation note
b5e1edd fix: FromStd::inner_mut deprecation note (VolodymyrBg) Pull request description: Update the deprecation note on FromStd::inner_mut() to recommend get_mut() instead of get_ref(). This aligns with the intended API where inner() maps to get_ref() and the mutable variant maps to get_mut(). ACKs for top commit: apoelstra: ACK b5e1edd; successfully ran local tests; nice find Tree-SHA512: fa1ab3f28de8513893c0c68fc5e394413221e9aab5de4015308df125f62e1e7c2ee76a2d4c6fcca00aef05dd6bc4d774589af9fc6fdff5c32c52fc342e0318bb
2 parents 7de9335 + b5e1edd commit acc8d02

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

io/src/bridge.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ impl<T> FromStd<T> {
4040

4141
/// Returns a mutable reference to the wrapped value.
4242
#[inline]
43-
#[deprecated(since = "TBD", note = "use `get_ref()` instead")]
43+
#[deprecated(since = "TBD", note = "use `get_mut()` instead")]
4444
pub fn inner_mut(&mut self) -> &mut T { &mut self.0 }
4545
}
4646

0 commit comments

Comments
 (0)