fix needless pass by value

Signed-off-by: Jason Volk <jason@zemos.net>
This commit is contained in:
Jason Volk 2024-06-28 23:23:59 +00:00
parent 875d9e8b07
commit 57acc4f655
15 changed files with 40 additions and 42 deletions

View file

@ -200,7 +200,7 @@ impl Service {
// There is no parent layer, create a new state
self.db.save_statediff(
shortstatehash,
StateDiff {
&StateDiff {
parent: None,
added: statediffnew,
removed: statediffremoved,
@ -251,7 +251,7 @@ impl Service {
// Diff small enough, we add diff as layer on top of parent
self.db.save_statediff(
shortstatehash,
StateDiff {
&StateDiff {
parent: Some(parent.0),
added: statediffnew,
removed: statediffremoved,