1
0
Fork 0

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:
Robbert van der Helm 2022-07-01 15:50:23 +02:00
parent 0599780030
commit 32ad1212f1
3 changed files with 9 additions and 0 deletions

View file

@ -2,6 +2,9 @@
//!
//! 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::{Size, WindowHandle, WindowOpenOptions, WindowScalePolicy};
use crossbeam::atomic::AtomicCell;

View file

@ -1,5 +1,8 @@
//! [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 crossbeam::atomic::AtomicCell;
use nih_plug::prelude::{Editor, GuiContext, ParentWindowHandle};

View file

@ -84,6 +84,9 @@
#![cfg_attr(feature = "docs", feature(doc_auto_cfg))]
#![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
// as well makes it easy to import _just_ the macros without using `#[macro_use] extern crate nih_plug;`