diff --git a/plugins/examples/byo_gui_wgpu/src/lib.rs b/plugins/examples/byo_gui_wgpu/src/lib.rs index 937ed828..3ba58582 100644 --- a/plugins/examples/byo_gui_wgpu/src/lib.rs +++ b/plugins/examples/byo_gui_wgpu/src/lib.rs @@ -81,16 +81,14 @@ impl CustomWgpuWindow { // Create the logical device and command queue let (device, queue) = adapter - .request_device( - &wgpu::DeviceDescriptor { - label: None, - required_features: wgpu::Features::empty(), - required_limits: wgpu::Limits::downlevel_webgl2_defaults() - .using_resolution(adapter.limits()), - memory_hints: wgpu::MemoryHints::MemoryUsage, - ..Default::default() - }, - ) + .request_device(&wgpu::DeviceDescriptor { + label: None, + required_features: wgpu::Features::empty(), + required_limits: wgpu::Limits::downlevel_webgl2_defaults() + .using_resolution(adapter.limits()), + memory_hints: wgpu::MemoryHints::MemoryUsage, + ..Default::default() + }) .await .expect("Failed to create device"); diff --git a/plugins/examples/gain_gui_egui/src/lib.rs b/plugins/examples/gain_gui_egui/src/lib.rs index a89d55f6..c4b3e510 100644 --- a/plugins/examples/gain_gui_egui/src/lib.rs +++ b/plugins/examples/gain_gui_egui/src/lib.rs @@ -128,8 +128,9 @@ impl Plugin for Gain { ui.add(widgets::ParamSlider::for_param(¶ms.gain, setter)); ui.label( - "Also gain, but with a lame widget. Can't even render the value correctly!", - ); + "Also gain, but with a lame widget. Can't even render the value \ + correctly!", + ); // This is a simple naieve version of a parameter slider that's not aware of how // the parameters work ui.add( diff --git a/src/wrapper/clap/context.rs b/src/wrapper/clap/context.rs index cf3668f2..0b148de9 100644 --- a/src/wrapper/clap/context.rs +++ b/src/wrapper/clap/context.rs @@ -1,7 +1,5 @@ use atomic_refcell::AtomicRefMut; -use clap_sys::ext::remote_controls::{ - clap_remote_controls_page, CLAP_REMOTE_CONTROLS_COUNT, -}; +use clap_sys::ext::remote_controls::{clap_remote_controls_page, CLAP_REMOTE_CONTROLS_COUNT}; use clap_sys::id::{clap_id, CLAP_INVALID_ID}; use clap_sys::string_sizes::CLAP_NAME_SIZE; use std::cell::Cell; diff --git a/src/wrapper/clap/wrapper.rs b/src/wrapper/clap/wrapper.rs index 1ff8e8a6..3b6a63ed 100644 --- a/src/wrapper/clap/wrapper.rs +++ b/src/wrapper/clap/wrapper.rs @@ -22,9 +22,6 @@ use clap_sys::ext::audio_ports::{ use clap_sys::ext::audio_ports_config::{ clap_audio_ports_config, clap_plugin_audio_ports_config, CLAP_EXT_AUDIO_PORTS_CONFIG, }; -use clap_sys::ext::remote_controls::{ - clap_plugin_remote_controls, clap_remote_controls_page, CLAP_EXT_REMOTE_CONTROLS, -}; use clap_sys::ext::gui::{ clap_gui_resize_hints, clap_host_gui, clap_plugin_gui, clap_window, CLAP_EXT_GUI, CLAP_WINDOW_API_COCOA, CLAP_WINDOW_API_WIN32, CLAP_WINDOW_API_X11, @@ -40,6 +37,9 @@ use clap_sys::ext::params::{ CLAP_PARAM_IS_MODULATABLE, CLAP_PARAM_IS_MODULATABLE_PER_NOTE_ID, CLAP_PARAM_IS_READONLY, CLAP_PARAM_IS_STEPPED, CLAP_PARAM_RESCAN_VALUES, }; +use clap_sys::ext::remote_controls::{ + clap_plugin_remote_controls, clap_remote_controls_page, CLAP_EXT_REMOTE_CONTROLS, +}; use clap_sys::ext::render::{ clap_plugin_render, clap_plugin_render_mode, CLAP_EXT_RENDER, CLAP_RENDER_OFFLINE, CLAP_RENDER_REALTIME,