Skip to content

Commit 1aa59a0

Browse files
committed
f Rename into_update to to_update
1 parent 4d52864 commit 1aa59a0

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/data_store.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff 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

2828
pub(crate) trait StorableObjectId: std::hash::Hash + PartialEq + Eq {
@@ -78,7 +78,7 @@ where
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
}

0 commit comments

Comments
 (0)