mirror of
https://github.com/librespot-org/librespot.git
synced 2024-12-18 17:11:53 +00:00
Remove session_id clones (#1422)
Signed-off-by: yubiuser <github@yubiuser.dev>
This commit is contained in:
parent
2a6d7545ca
commit
597974f7d8
2 changed files with 2 additions and 2 deletions
|
@ -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 {
|
||||||
|
|
|
@ -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);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue