Skip to content

Commit 46cee6a

Browse files
committed
chore: deprecate .inner() and .inner_mut()
1 parent ef9687b commit 46cee6a

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

crates/tx-cache/src/types.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -54,13 +54,15 @@ impl<T: CacheObject> CacheResponse<T> {
5454
}
5555

5656
/// Return a reference to the inner value.
57+
#[deprecated = "use deref instead"]
5758
pub const fn inner(&self) -> &T {
5859
match self {
5960
Self { inner, .. } => inner,
6061
}
6162
}
6263

6364
/// Return a mutable reference to the inner value.
65+
#[deprecated = "use deref_mut instead"]
6466
pub const fn inner_mut(&mut self) -> &mut T {
6567
match self {
6668
Self { inner, .. } => inner,

0 commit comments

Comments
 (0)