80
80
///
81
81
/// * If value with same `value.id` is already present in the map.
82
82
/// * If value not created in current revision.
83
- pub fn insert < ' db > ( & ' db self , current_revision : Revision , value : Value < C > ) -> C :: Struct < ' db > {
83
+ pub fn insert ( & self , current_revision : Revision , value : Value < C > ) -> C :: Struct < ' _ > {
84
84
assert_eq ! ( value. created_at, current_revision) ;
85
85
86
86
let id = value. id ;
99
99
unsafe { C :: struct_from_raw ( pointer) }
100
100
}
101
101
102
- pub fn validate < ' db > ( & ' db self , current_revision : Revision , id : Id ) {
102
+ pub fn validate ( & self , current_revision : Revision , id : Id ) {
103
103
let mut data = self . map . get_mut ( & id) . unwrap ( ) ;
104
104
105
105
// UNSAFE: We never permit `&`-access in the current revision until data.created_at
@@ -118,7 +118,7 @@ where
118
118
///
119
119
/// * If the value is not present in the map.
120
120
/// * If the value is already updated in this revision.
121
- pub fn update < ' db > ( & ' db self , current_revision : Revision , id : Id ) -> Update < ' db , C > {
121
+ pub fn update ( & self , current_revision : Revision , id : Id ) -> Update < ' _ , C > {
122
122
let mut data = self . map . get_mut ( & id) . unwrap ( ) ;
123
123
124
124
// UNSAFE: We never permit `&`-access in the current revision until data.created_at
@@ -163,7 +163,7 @@ where
163
163
///
164
164
/// * If the value is not present in the map.
165
165
/// * If the value has not been updated in this revision.
166
- pub fn get < ' db > ( & ' db self , current_revision : Revision , id : Id ) -> C :: Struct < ' db > {
166
+ pub fn get ( & self , current_revision : Revision , id : Id ) -> C :: Struct < ' _ > {
167
167
Self :: get_from_map ( & self . map , current_revision, id)
168
168
}
169
169
@@ -173,11 +173,11 @@ where
173
173
///
174
174
/// * If the value is not present in the map.
175
175
/// * If the value has not been updated in this revision.
176
- fn get_from_map < ' db > (
177
- map : & ' db FxDashMap < Id , Alloc < Value < C > > > ,
176
+ fn get_from_map (
177
+ map : & FxDashMap < Id , Alloc < Value < C > > > ,
178
178
current_revision : Revision ,
179
179
id : Id ,
180
- ) -> C :: Struct < ' db > {
180
+ ) -> C :: Struct < ' _ > {
181
181
let data = map. get ( & id) . unwrap ( ) ;
182
182
183
183
// UNSAFE: We permit `&`-access in the current revision once data.created_at
@@ -230,7 +230,7 @@ where
230
230
///
231
231
/// * If the value is not present in the map.
232
232
/// * If the value has not been updated in this revision.
233
- pub fn get < ' db > ( & ' db self , current_revision : Revision , id : Id ) -> C :: Struct < ' db > {
233
+ pub fn get ( & self , current_revision : Revision , id : Id ) -> C :: Struct < ' _ > {
234
234
StructMap :: get_from_map ( & self . map , current_revision, id)
235
235
}
236
236
}
0 commit comments