From 5ae23f52f4a7c23d3a2f3c9911a695788a26522d Mon Sep 17 00:00:00 2001 From: Robbert van der Helm Date: Sun, 16 Jul 2023 15:17:58 +0200 Subject: [PATCH] Fix clippy lints --- src/wrapper/util.rs | 2 +- src/wrapper/vst3/factory.rs | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/wrapper/util.rs b/src/wrapper/util.rs index 3baee0c4..9dc9b918 100644 --- a/src/wrapper/util.rs +++ b/src/wrapper/util.rs @@ -257,7 +257,7 @@ impl Drop for ScopedFtz { if self.should_disable_again { #[cfg(target_feature = "sse")] { - return unsafe { + unsafe { std::arch::x86_64::_MM_SET_FLUSH_ZERO_MODE( std::arch::x86_64::_MM_FLUSH_ZERO_OFF, ) diff --git a/src/wrapper/vst3/factory.rs b/src/wrapper/vst3/factory.rs index ffd1a278..57eac767 100644 --- a/src/wrapper/vst3/factory.rs +++ b/src/wrapper/vst3/factory.rs @@ -27,7 +27,7 @@ pub struct Factory { impl Factory

{ pub fn new() -> Box { - Self::allocate(PhantomData::default()) + Self::allocate(PhantomData) } }