From a6764ba05fee785186166c0710b08eb2a5ae302c Mon Sep 17 00:00:00 2001 From: Matthias Krüger Date: Fri, 7 Dec 2018 14:58:11 +0100 Subject: Use tool lints for clippy allow/deny lint attributes --- src/grid/mod.rs | 2 +- src/grid/row.rs | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) (limited to 'src/grid') diff --git a/src/grid/mod.rs b/src/grid/mod.rs index 9e15bd02..b6313751 100644 --- a/src/grid/mod.rs +++ b/src/grid/mod.rs @@ -404,7 +404,7 @@ impl Grid { } } -#[cfg_attr(feature = "cargo-clippy", allow(len_without_is_empty))] +#[allow(clippy::len_without_is_empty)] impl Grid { #[inline] pub fn num_lines(&self) -> index::Line { diff --git a/src/grid/row.rs b/src/grid/row.rs index 7c12bf99..abfb9f93 100644 --- a/src/grid/row.rs +++ b/src/grid/row.rs @@ -71,7 +71,7 @@ impl Row { } } -#[cfg_attr(feature = "cargo-clippy", allow(len_without_is_empty))] +#[allow(clippy::len_without_is_empty)] impl Row { pub fn shrink(&mut self, cols: Column) { while self.len() != *cols { -- cgit