We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent ef9687b commit 46cee6aCopy full SHA for 46cee6a
crates/tx-cache/src/types.rs
@@ -54,13 +54,15 @@ impl<T: CacheObject> CacheResponse<T> {
54
}
55
56
/// Return a reference to the inner value.
57
+ #[deprecated = "use deref instead"]
58
pub const fn inner(&self) -> &T {
59
match self {
60
Self { inner, .. } => inner,
61
62
63
64
/// Return a mutable reference to the inner value.
65
+ #[deprecated = "use deref_mut instead"]
66
pub const fn inner_mut(&mut self) -> &mut T {
67
68
0 commit comments