Skip to content

Commit

Permalink
Merge pull request #86 from holochain/remote-mut-self-in-add-credentials
Browse files Browse the repository at this point in the history
Remove &mut self in `add_credentials`
  • Loading branch information
ThetaSinner authored Jun 13, 2024
2 parents 82ce343 + 75ab5a9 commit b634d6c
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 b634d6c

Please sign in to comment.