Remove session_id clones (#1422)

Signed-off-by: yubiuser <github@yubiuser.dev>
This commit is contained in:
yubiuser 2024-12-16 18:31:46 +01:00 committed by GitHub
parent 2a6d7545ca
commit 597974f7d8
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 2 additions and 2 deletions

View file

@ -1554,7 +1554,7 @@ impl SpircTask {
); );
if self.session.session_id() != session.session_id { 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); self.connect_state.set_session_id(session.session_id);
} }
} else { } else {

View file

@ -389,7 +389,7 @@ impl Session {
self.0.data.read().session_id.clone() 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); session_id.clone_into(&mut self.0.data.write().session_id);
} }