Skip to content

Commit

Permalink
chore: bump flake
Browse files Browse the repository at this point in the history
  • Loading branch information
bodymindarts committed May 6, 2024
1 parent 9fd59af commit 2539a4f
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 8 deletions.
12 changes: 6 additions & 6 deletions flake.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion src/address/entity.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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 });
}
Expand Down
2 changes: 1 addition & 1 deletion src/profile/entity.rs
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ pub struct Profile {
impl Profile {
pub fn update_spending_policy(&mut self, policy: Option<SpendingPolicy>) {
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,
Expand Down

0 comments on commit 2539a4f

Please sign in to comment.