diff --git a/src/audio/capture.rs b/src/audio/capture.rs index 3414343c..3d56a5c5 100644 --- a/src/audio/capture.rs +++ b/src/audio/capture.rs @@ -264,7 +264,6 @@ unsafe impl Send for SoundBufferRecorder {} // `&SoundBufferRecorder` between threads. unsafe impl Sync for SoundBufferRecorder {} - impl SoundBufferRecorder { /// Create a new sound buffer recorder /// diff --git a/src/cpp/fbox.rs b/src/cpp/fbox.rs index 24727341..cf03781f 100644 --- a/src/cpp/fbox.rs +++ b/src/cpp/fbox.rs @@ -27,12 +27,12 @@ impl std::fmt::Debug for FBox { // SAFETY: An `FBox` owns its contents, so it is safe to move between threads if and only if the // contents is safe to move between threads. This matches the behaviour of `std::boxed::Box`. -unsafe impl Send for FBox {} +unsafe impl Send for FBox {} // SAFETY: An `FBox` derefs to its contents, so it is safe to pass an `&FBox` between threads if // and only if it is safe to pass a reference to its contents between threads. This matches the // behaviour of `std::boxed::Box`. -unsafe impl Sync for FBox {} +unsafe impl Sync for FBox {} impl FBox { pub(crate) fn new(ptr: *mut T) -> Option {