From e24ab5a4f11771397f42a00570952f8695c846b0 Mon Sep 17 00:00:00 2001 From: Robert Habermeier Date: Wed, 25 May 2016 17:10:01 +0200 Subject: [PATCH] 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 --- util/src/trie/sectriedb.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/util/src/trie/sectriedb.rs b/util/src/trie/sectriedb.rs index 685af335b..5558344fa 100644 --- a/util/src/trie/sectriedb.rs +++ b/util/src/trie/sectriedb.rs @@ -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 } }