Skip to content

Commit f470075

Browse files
committed
Allow cloning SPIRC
- which is just a tokio::sync::mpsc sender, so this should be safe - prep for MPRIS support, which will use this to control playback
1 parent 338d8b9 commit f470075

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

connect/src/spirc.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -160,6 +160,7 @@ const CONTEXT_FETCH_THRESHOLD: u32 = 5;
160160
const VOLUME_STEPS: i64 = 64;
161161
const VOLUME_STEP_SIZE: u16 = 1024; // (u16::MAX + 1) / VOLUME_STEPS
162162

163+
#[derive(Clone)]
163164
pub struct Spirc {
164165
commands: mpsc::UnboundedSender<SpircCommand>,
165166
}

0 commit comments

Comments
 (0)