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:
Robert Habermeier 2016-05-25 17:10:01 +02:00
parent a0bc1f9dae
commit e24ab5a4f1

View File

@ -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
}
}