Skip to content
This repository was archived by the owner on Mar 27, 2024. It is now read-only.

Commit 788741f

Browse files
committed
cargo fmt
1 parent 72a6b1f commit 788741f

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

src/lib.rs

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -187,9 +187,7 @@ pub fn main<T: Plugin + Default>(callback: HostCallbackProc) -> *mut AEffect {
187187
// Create a Box containing a zeroed AEffect. This is transmuted into a *mut pointer so that it
188188
// can be passed into the HostCallback `wrap` method. The AEffect is then updated after the vst
189189
// object is created so that the host still contains a raw pointer to the AEffect struct.
190-
let effect = unsafe {
191-
Box::into_raw(Box::new(mem::MaybeUninit::zeroed().assume_init()))
192-
};
190+
let effect = unsafe { Box::into_raw(Box::new(mem::MaybeUninit::zeroed().assume_init())) };
193191

194192
let host = HostCallback::wrap(callback, effect);
195193
if host.vst_version() == 0 {

0 commit comments

Comments
 (0)