Skip to content

Commit

Permalink
Remove &mut self in add_credentials
Browse files Browse the repository at this point in the history
  • Loading branch information
ThetaSinner committed Jun 13, 2024
1 parent 82ce343 commit 75ab5a9
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
3 changes: 3 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down
2 changes: 1 addition & 1 deletion src/signing/client_signing.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}
}
Expand Down

0 comments on commit 75ab5a9

Please sign in to comment.