Skip to content

Commit e8e11bf

Browse files
authored
chore: add inner_mut (#2160)
1 parent 95aede1 commit e8e11bf

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

crates/consensus/src/transaction/recovered.rs

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,11 +26,16 @@ impl<T> Recovered<T> {
2626
&self.signer
2727
}
2828

29-
/// Reference to the inner signed object.
29+
/// Reference to the inner recovered object.
3030
pub const fn inner(&self) -> &T {
3131
&self.inner
3232
}
3333

34+
/// Reference to the inner recovered object.
35+
pub fn inner_mut(&mut self) -> &mut T {
36+
&mut self.inner
37+
}
38+
3439
/// Reference to the inner signed object.
3540
pub fn into_inner(self) -> T {
3641
self.inner

0 commit comments

Comments
 (0)