correct signature of SecTrieDB::raw_mut
&mut T is invariant over its type parameter, so we need to specify the trait's lifetime explicitly rather than coerce it to the elided lifetime
This commit is contained in:
parent
a0bc1f9dae
commit
e24ab5a4f1
@ -41,7 +41,7 @@ impl<'db> SecTrieDB<'db> {
|
||||
}
|
||||
|
||||
/// Get a mutable reference to the underlying raw `TrieDB` struct.
|
||||
pub fn raw_mut(&mut self) -> &TrieDB {
|
||||
pub fn raw_mut(&mut self) -> &mut TrieDB<'db> {
|
||||
&mut self.raw
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user