Skip to content

Commit

Permalink
Remove session_id clones (#1422)
Browse files Browse the repository at this point in the history
Signed-off-by: yubiuser <[email protected]>
  • Loading branch information
yubiuser authored Dec 16, 2024
1 parent 2a6d754 commit 597974f
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion connect/src/spirc.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1554,7 +1554,7 @@ impl SpircTask {
);

if self.session.session_id() != session.session_id {
self.session.set_session_id(session.session_id.clone());
self.session.set_session_id(&session.session_id);
self.connect_state.set_session_id(session.session_id);
}
} else {
Expand Down
2 changes: 1 addition & 1 deletion core/src/session.rs
Original file line number Diff line number Diff line change
Expand Up @@ -389,7 +389,7 @@ impl Session {
self.0.data.read().session_id.clone()
}

pub fn set_session_id(&self, session_id: String) {
pub fn set_session_id(&self, session_id: &str) {
session_id.clone_into(&mut self.0.data.write().session_id);
}

Expand Down

0 comments on commit 597974f

Please sign in to comment.