summaryrefslogtreecommitdiffstats
path: root/src/grid/row.rs
diff options
context:
space:
mode:
authorChristian Duerr <chrisduerr@users.noreply.github.com>2018-07-21 17:17:41 +0000
committerGitHub <noreply@github.com>2018-07-21 17:17:41 +0000
commitf50ca1a54c94fe324d22d985c1acae1ff7c16a80 (patch)
tree7fc2e79f7dccf512fe71f841ef5434e0b1d2b5d7 /src/grid/row.rs
parentb05ad74fe6d42ce0f913e02ef633ca119fc0b43e (diff)
Scrollback cleanup
There were some unneeded codeblocks and TODO/XXX comments in the code that have been removed. All issues marked with TODO/XXX have either been already resolved or tracking issues exist.
Diffstat (limited to 'src/grid/row.rs')
-rw-r--r--src/grid/row.rs3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/grid/row.rs b/src/grid/row.rs
index ea8804a7..69a4f2b2 100644
--- a/src/grid/row.rs
+++ b/src/grid/row.rs
@@ -71,6 +71,7 @@ impl<T: Copy + Clone> Row<T> {
}
}
+#[cfg_attr(feature = "cargo-clippy", allow(len_without_is_empty))]
impl<T> Row<T> {
pub fn shrink(&mut self, cols: Column) {
while self.len() != *cols {
@@ -84,7 +85,7 @@ impl<T> Row<T> {
self.inner.len()
}
- pub fn iter<'a>(&'a self) -> slice::Iter<'a, T> {
+ pub fn iter(&self) -> slice::Iter<T> {
self.inner.iter()
}
}