aboutsummaryrefslogtreecommitdiff
path: root/src/grid
diff options
context:
space:
mode:
authorMatthias Krüger <matthias.krueger@famsik.de>2018-12-07 14:58:11 +0100
committerChristian Duerr <chrisduerr@users.noreply.github.com>2018-12-07 13:58:11 +0000
commita6764ba05fee785186166c0710b08eb2a5ae302c (patch)
treea892e58d33619d142a89c874884875a159db94ee /src/grid
parentcdc22ce76a8b191bfe9dbd1ef55e24ef37ac001d (diff)
downloadr-alacritty-a6764ba05fee785186166c0710b08eb2a5ae302c.tar.gz
r-alacritty-a6764ba05fee785186166c0710b08eb2a5ae302c.tar.bz2
r-alacritty-a6764ba05fee785186166c0710b08eb2a5ae302c.zip
Use tool lints for clippy allow/deny lint attributes
Diffstat (limited to 'src/grid')
-rw-r--r--src/grid/mod.rs2
-rw-r--r--src/grid/row.rs2
2 files changed, 2 insertions, 2 deletions
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<T: Copy + Clone> Grid<T> {
}
}
-#[cfg_attr(feature = "cargo-clippy", allow(len_without_is_empty))]
+#[allow(clippy::len_without_is_empty)]
impl<T> Grid<T> {
#[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<T: Copy + Clone> Row<T> {
}
}
-#[cfg_attr(feature = "cargo-clippy", allow(len_without_is_empty))]
+#[allow(clippy::len_without_is_empty)]
impl<T> Row<T> {
pub fn shrink(&mut self, cols: Column) {
while self.len() != *cols {