Skip to content

Commit 2e475b1

Browse files
committed
remove unneeded &mut self
1 parent 124fa4f commit 2e475b1

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/context/offline.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -419,7 +419,7 @@ impl OfflineAudioContext {
419419
/// override the previous event handler.
420420
#[allow(clippy::missing_panics_doc)]
421421
pub fn set_oncomplete<F: FnOnce(OfflineAudioCompletionEvent) + Send + 'static>(
422-
&mut self,
422+
&self,
423423
callback: F,
424424
) {
425425
if let Some(renderer) = self.renderer.lock().unwrap().as_mut() {
@@ -429,7 +429,7 @@ impl OfflineAudioContext {
429429

430430
/// Unset the callback to run when the rendering has completed
431431
#[allow(clippy::missing_panics_doc)]
432-
pub fn clear_oncomplete(&mut self) {
432+
pub fn clear_oncomplete(&self) {
433433
if let Some(renderer) = self.renderer.lock().unwrap().as_mut() {
434434
renderer.oncomplete_handler = None;
435435
}

0 commit comments

Comments
 (0)