Skip to content

Commit

Permalink
fix warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
micahrj committed Jan 11, 2024
1 parent 27a723a commit d036fd4
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
6 changes: 3 additions & 3 deletions src/format/clap/gui.rs
Original file line number Diff line number Diff line change
Expand Up @@ -27,13 +27,13 @@ impl<P: Plugin> Instance<P> {
};

#[cfg(target_os = "windows")]
const API: &CStr = CLAP_WINDOW_API_WIN32;
const API: &'static CStr = CLAP_WINDOW_API_WIN32;

#[cfg(target_os = "macos")]
const API: &CStr = CLAP_WINDOW_API_COCOA;
const API: &'static CStr = CLAP_WINDOW_API_COCOA;

#[cfg(target_os = "linux")]
const API: &CStr = CLAP_WINDOW_API_X11;
const API: &'static CStr = CLAP_WINDOW_API_X11;

unsafe extern "C" fn gui_is_api_supported(
_plugin: *const clap_plugin,
Expand Down
2 changes: 1 addition & 1 deletion src/format/clap/instance.rs
Original file line number Diff line number Diff line change
Expand Up @@ -423,7 +423,7 @@ impl<P: Plugin> Instance<P> {
let instance = &*(plugin as *const Self);

if let Some(layout) = instance.info.layouts.get(index as usize) {
let mut config = &mut *config;
let config = &mut *config;

config.id = index;
copy_cstring("", &mut config.name);
Expand Down
4 changes: 2 additions & 2 deletions src/format/vst3/view.rs
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ impl<P: Plugin> IPlugViewTrait for View<P> {
#[cfg(target_os = "linux")]
let raw_parent = RawParent::X11(parent as std::ffi::c_ulong);

let mut main_thread_state = &mut *self.main_thread_state.get();
let main_thread_state = &mut *self.main_thread_state.get();

let editor = main_thread_state.plugin.editor(Parent::from_raw(raw_parent));
main_thread_state.editor = Some(editor);
Expand All @@ -67,7 +67,7 @@ impl<P: Plugin> IPlugViewTrait for View<P> {
}

unsafe fn removed(&self) -> tresult {
let mut main_thread_state = &mut *self.main_thread_state.get();
let main_thread_state = &mut *self.main_thread_state.get();

main_thread_state.editor = None;

Expand Down

0 comments on commit d036fd4

Please sign in to comment.