From 2539a4fed0b105ea86e78e79ff8d0759ba1dc2d0 Mon Sep 17 00:00:00 2001 From: bodymindarts Date: Mon, 6 May 2024 15:45:24 +0200 Subject: [PATCH] chore: bump flake --- flake.lock | 12 ++++++------ src/address/entity.rs | 2 +- src/profile/entity.rs | 2 +- 3 files changed, 8 insertions(+), 8 deletions(-) diff --git a/flake.lock b/flake.lock index 2546a6e2..2a9e14d4 100644 --- a/flake.lock +++ b/flake.lock @@ -20,11 +20,11 @@ }, "nixpkgs": { "locked": { - "lastModified": 1712608508, - "narHash": "sha256-vMZ5603yU0wxgyQeHJryOI+O61yrX2AHwY6LOFyV1gM=", + "lastModified": 1714906307, + "narHash": "sha256-UlRZtrCnhPFSJlDQE7M0eyhgvuuHBTe1eJ9N9AQlJQ0=", "owner": "NixOS", "repo": "nixpkgs", - "rev": "4cba8b53da471aea2ab2b0c1f30a81e7c451f4b6", + "rev": "25865a40d14b3f9cf19f19b924e2ab4069b09588", "type": "github" }, "original": { @@ -51,11 +51,11 @@ ] }, "locked": { - "lastModified": 1712801594, - "narHash": "sha256-KZJnVw3TdfDyUhvClzgy3IEoC9tRhvG0yM+lHfqAm34=", + "lastModified": 1714961776, + "narHash": "sha256-LiIxWRKbm1DZ+7l1a6FMmIO8leQx5yrRLIApCMai1DY=", "owner": "oxalica", "repo": "rust-overlay", - "rev": "35ebec41fcdeeae8e012e7d62ba153a13645227f", + "rev": "f3b20ea4131408ea585bddb1f41f91c4de9499cf", "type": "github" }, "original": { diff --git a/src/address/entity.rs b/src/address/entity.rs index 34e510b4..a3378c61 100644 --- a/src/address/entity.rs +++ b/src/address/entity.rs @@ -52,7 +52,7 @@ impl WalletAddress { pub fn update_external_id(&mut self, external_id: String) { if self.external_id != external_id { - self.external_id = external_id.clone(); + self.external_id.clone_from(&external_id); self.events .push(AddressEvent::ExternalIdUpdated { external_id }); } diff --git a/src/profile/entity.rs b/src/profile/entity.rs index c266948a..0bc8dbb3 100644 --- a/src/profile/entity.rs +++ b/src/profile/entity.rs @@ -34,7 +34,7 @@ pub struct Profile { impl Profile { pub fn update_spending_policy(&mut self, policy: Option) { if self.spending_policy != policy { - self.spending_policy = policy.clone(); + self.spending_policy.clone_from(&policy); if let Some(policy) = policy { self.events.push(ProfileEvent::SpendingPolicyUpdated { spending_policy: policy,