1
0
Fork 0

Fix clippy lints

This commit is contained in:
Robbert van der Helm 2022-03-06 15:41:35 +01:00
parent 8e2fd66573
commit d7ea21f597
2 changed files with 6 additions and 0 deletions

View file

@ -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),

View file

@ -12,6 +12,7 @@ struct Stft {
}
#[derive(Params)]
#[allow(clippy::derivable_impls)]
struct StftParams {}
impl Default for Stft {