Simplify lints
This commit is contained in:
parent
008554a2bd
commit
5acf49d018
2 changed files with 3 additions and 7 deletions
|
|
@ -1,16 +1,11 @@
|
||||||
#![deny(unsafe_code)]
|
#![forbid(unsafe_code)]
|
||||||
// Rustc lint groups
|
// Rustc lint groups
|
||||||
#![warn(future_incompatible)]
|
#![warn(future_incompatible)]
|
||||||
#![warn(rust_2018_idioms)]
|
#![warn(rust_2018_idioms)]
|
||||||
|
#![warn(unused)]
|
||||||
// Rustc lints
|
// Rustc lints
|
||||||
#![warn(noop_method_call)]
|
#![warn(noop_method_call)]
|
||||||
#![warn(single_use_lifetimes)]
|
#![warn(single_use_lifetimes)]
|
||||||
#![warn(trivial_numeric_casts)]
|
|
||||||
#![warn(unused_crate_dependencies)]
|
|
||||||
#![warn(unused_extern_crates)]
|
|
||||||
#![warn(unused_import_braces)]
|
|
||||||
#![warn(unused_lifetimes)]
|
|
||||||
#![warn(unused_qualifications)]
|
|
||||||
// Clippy lints
|
// Clippy lints
|
||||||
#![warn(clippy::use_self)]
|
#![warn(clippy::use_self)]
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -54,6 +54,7 @@ impl From<crossterm::event::KeyEvent> for KeyEvent {
|
||||||
}
|
}
|
||||||
|
|
||||||
#[rustfmt::skip]
|
#[rustfmt::skip]
|
||||||
|
#[allow(unused_macro_rules)]
|
||||||
macro_rules! key {
|
macro_rules! key {
|
||||||
// key!(Paste text)
|
// key!(Paste text)
|
||||||
( Paste $text:ident ) => { crate::ui::input::InputEvent::Paste($text) };
|
( Paste $text:ident ) => { crate::ui::input::InputEvent::Paste($text) };
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue