File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed
Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -22,7 +22,7 @@ pub(crate) trait StorableObject: Clone + Readable + Writeable {
2222
2323 fn id ( & self ) -> Self :: Id ;
2424 fn update ( & mut self , update : & Self :: Update ) -> bool ;
25- fn into_update ( & self ) -> Self :: Update ;
25+ fn to_update ( & self ) -> Self :: Update ;
2626}
2727
2828pub ( crate ) trait StorableObjectId : std:: hash:: Hash + PartialEq + Eq {
7878 let updated;
7979 match locked_objects. entry ( object. id ( ) ) {
8080 hash_map:: Entry :: Occupied ( mut e) => {
81- let update = object. into_update ( ) ;
81+ let update = object. to_update ( ) ;
8282 updated = e. get_mut ( ) . update ( & update) ;
8383 if updated {
8484 self . persist ( & e. get ( ) ) ?;
@@ -213,7 +213,7 @@ mod tests {
213213 }
214214 }
215215
216- fn into_update ( & self ) -> Self :: Update {
216+ fn to_update ( & self ) -> Self :: Update {
217217 Self :: Update { id : self . id , data : self . data }
218218 }
219219 }
You can’t perform that action at this time.
0 commit comments