diff --git a/core/src/session.rs b/core/src/session.rs index 69125e17..7801d68b 100755 --- a/core/src/session.rs +++ b/core/src/session.rs @@ -513,13 +513,7 @@ impl Session { } pub fn get_user_attribute(&self, key: &str) -> Option { - self.0 - .data - .read() - .user_data - .attributes - .get(key) - .map(Clone::clone) + self.0.data.read().user_data.attributes.get(key).cloned() } fn weak(&self) -> SessionWeak { diff --git a/playback/src/audio_backend/pipe.rs b/playback/src/audio_backend/pipe.rs index e0e8a77c..e680256d 100644 --- a/playback/src/audio_backend/pipe.rs +++ b/playback/src/audio_backend/pipe.rs @@ -66,6 +66,7 @@ impl Sink for StdoutSink { OpenOptions::new() .write(true) .create(true) + .truncate(true) .open(file) .map_err(|e| StdoutError::OpenFailure { file: file.to_string(),