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

Commit

Permalink
cargo fmt
Browse files Browse the repository at this point in the history
  • Loading branch information
crsaracco committed Nov 3, 2019
1 parent 72a6b1f commit 788741f
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -187,9 +187,7 @@ pub fn main<T: Plugin + Default>(callback: HostCallbackProc) -> *mut AEffect {
// Create a Box containing a zeroed AEffect. This is transmuted into a *mut pointer so that it
// can be passed into the HostCallback `wrap` method. The AEffect is then updated after the vst
// object is created so that the host still contains a raw pointer to the AEffect struct.
let effect = unsafe {
Box::into_raw(Box::new(mem::MaybeUninit::zeroed().assume_init()))
};
let effect = unsafe { Box::into_raw(Box::new(mem::MaybeUninit::zeroed().assume_init())) };

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

0 comments on commit 788741f

Please sign in to comment.