Fix clippy lints
This commit is contained in:
parent
8e2fd66573
commit
d7ea21f597
|
@ -15,6 +15,11 @@ use super::ParamSlider;
|
|||
pub trait ParamWidget {
|
||||
fn add_widget<P: Param>(&self, ui: &mut Ui, param: &P, setter: &ParamSetter);
|
||||
|
||||
/// The same as [`add_widget()`][Self::add_widget()], but for a `ParamPtr`.
|
||||
///
|
||||
/// # Safety
|
||||
///
|
||||
/// Undefined behavior of the `ParamPtr` does not point to a valid parameter.
|
||||
unsafe fn add_widget_raw(&self, ui: &mut Ui, param: &ParamPtr, setter: &ParamSetter) {
|
||||
match param {
|
||||
ParamPtr::FloatParam(p) => self.add_widget(ui, &**p, setter),
|
||||
|
|
|
@ -12,6 +12,7 @@ struct Stft {
|
|||
}
|
||||
|
||||
#[derive(Params)]
|
||||
#[allow(clippy::derivable_impls)]
|
||||
struct StftParams {}
|
||||
|
||||
impl Default for Stft {
|
||||
|
|
Loading…
Reference in a new issue