From cc8b13f80802791f8a3cb1eb32a7f6e3ec217942 Mon Sep 17 00:00:00 2001 From: Alex Auvolat Date: Thu, 21 Apr 2022 12:01:47 +0200 Subject: [PATCH] fix clippy --- src/model/index_counter.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/model/index_counter.rs b/src/model/index_counter.rs index 48d69939..cabe9de5 100644 --- a/src/model/index_counter.rs +++ b/src/model/index_counter.rs @@ -179,7 +179,7 @@ impl IndexCounter { let pk = pk.clone(); let sk = sk.clone(); tokio::spawn(async move { - let dist_entry = new_entry.to_counter_entry::(this_node, pk, sk); + let dist_entry = new_entry.into_counter_entry::(this_node, pk, sk); if let Err(e) = table.insert(&dist_entry).await { warn!("({}) Could not propagate counter value: {}", T::NAME, e); } @@ -195,7 +195,7 @@ struct LocalCounterEntry { } impl LocalCounterEntry { - fn to_counter_entry( + fn into_counter_entry( self, this_node: Uuid, pk: T::P,