Silence clippy::type_complexity
Clippy now wants us to move any usage of the Fn* traits to a typedef. Doing so will almost certainly not help readability.
This commit is contained in:
parent
0599780030
commit
32ad1212f1
|
@ -2,6 +2,9 @@
|
||||||
//!
|
//!
|
||||||
//! TODO: Proper usage example, for now check out the gain_gui example
|
//! TODO: Proper usage example, for now check out the gain_gui example
|
||||||
|
|
||||||
|
// See the comment in the main `nih_plug` crate
|
||||||
|
#![allow(clippy::type_complexity)]
|
||||||
|
|
||||||
use baseview::gl::GlConfig;
|
use baseview::gl::GlConfig;
|
||||||
use baseview::{Size, WindowHandle, WindowOpenOptions, WindowScalePolicy};
|
use baseview::{Size, WindowHandle, WindowOpenOptions, WindowScalePolicy};
|
||||||
use crossbeam::atomic::AtomicCell;
|
use crossbeam::atomic::AtomicCell;
|
||||||
|
|
|
@ -1,5 +1,8 @@
|
||||||
//! [VIZIA](https://github.com/vizia/vizia) editor support for NIH plug.
|
//! [VIZIA](https://github.com/vizia/vizia) editor support for NIH plug.
|
||||||
|
|
||||||
|
// See the comment in the main `nih_plug` crate
|
||||||
|
#![allow(clippy::type_complexity)]
|
||||||
|
|
||||||
use baseview::{WindowHandle, WindowScalePolicy};
|
use baseview::{WindowHandle, WindowScalePolicy};
|
||||||
use crossbeam::atomic::AtomicCell;
|
use crossbeam::atomic::AtomicCell;
|
||||||
use nih_plug::prelude::{Editor, GuiContext, ParentWindowHandle};
|
use nih_plug::prelude::{Editor, GuiContext, ParentWindowHandle};
|
||||||
|
|
|
@ -84,6 +84,9 @@
|
||||||
|
|
||||||
#![cfg_attr(feature = "docs", feature(doc_auto_cfg))]
|
#![cfg_attr(feature = "docs", feature(doc_auto_cfg))]
|
||||||
#![cfg_attr(feature = "simd", feature(portable_simd))]
|
#![cfg_attr(feature = "simd", feature(portable_simd))]
|
||||||
|
// Around Rust 1.64 Clippy started throwing this for all instances of `dyn Fn(...) -> ... + Send +
|
||||||
|
// Sync`. Creating type aliases for all of these callbacks probably won't make things easier to read.
|
||||||
|
#![allow(clippy::type_complexity)]
|
||||||
|
|
||||||
// These macros are also in the crate root and in the prelude, but having the module itself be pub
|
// These macros are also in the crate root and in the prelude, but having the module itself be pub
|
||||||
// as well makes it easy to import _just_ the macros without using `#[macro_use] extern crate nih_plug;`
|
// as well makes it easy to import _just_ the macros without using `#[macro_use] extern crate nih_plug;`
|
||||||
|
|
Loading…
Reference in a new issue