From 75ab5a937c5e7f0784a77af5f2f537aa0c682453 Mon Sep 17 00:00:00 2001 From: ThetaSinner Date: Thu, 13 Jun 2024 16:21:20 +0100 Subject: [PATCH] Remove &mut self in `add_credentials` --- CHANGELOG.md | 3 +++ src/signing/client_signing.rs | 2 +- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 7cc4c7f..483e437 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -6,6 +6,9 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/). ### Added ### Changed +- The `ClientAgentSigner` function `add_credentials` no longer takes `self` as mutable. This wasn't required by the + function implementation. + ### Fixed ### Removed diff --git a/src/signing/client_signing.rs b/src/signing/client_signing.rs index 1009278..b1ac23d 100644 --- a/src/signing/client_signing.rs +++ b/src/signing/client_signing.rs @@ -35,7 +35,7 @@ impl ClientAgentSigner { } } - pub fn add_credentials(&mut self, cell_id: CellId, credentials: SigningCredentials) { + pub fn add_credentials(&self, cell_id: CellId, credentials: SigningCredentials) { self.credentials.write().insert(cell_id, credentials); } }