aboutsummaryrefslogtreecommitdiff
path: root/src/term
diff options
context:
space:
mode:
authorJoe Wilm <joe@jwilm.com>2016-12-16 22:13:51 -0800
committerJoe Wilm <joe@jwilm.com>2016-12-16 22:13:51 -0800
commitdc918ae71a5e6c78a77994d7ce106a2253918c54 (patch)
tree537c7d13443e18ed657398f4eca0bf921ef4ac5e /src/term
parent3b995ff87a54239ecacb95d51f65c17504a8d22c (diff)
downloadalacritty-dc918ae71a5e6c78a77994d7ce106a2253918c54.tar.gz
alacritty-dc918ae71a5e6c78a77994d7ce106a2253918c54.zip
Rustup and clippy
All of the changes in this commit are due to clippy lints.
Diffstat (limited to 'src/term')
-rw-r--r--src/term/mod.rs8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/term/mod.rs b/src/term/mod.rs
index 93124732..1bed8134 100644
--- a/src/term/mod.rs
+++ b/src/term/mod.rs
@@ -95,7 +95,7 @@ pub struct IndexedCell {
impl Deref for IndexedCell {
type Target = Cell;
- #[inline(always)]
+ #[inline]
fn deref(&self) -> &Cell {
&self.inner
}
@@ -108,7 +108,7 @@ impl<'a> Iterator for RenderableCellsIter<'a> {
///
/// Skips empty (background) cells and applies any flags to the cell state
/// (eg. invert fg and bg colors).
- #[inline(always)]
+ #[inline]
fn next(&mut self) -> Option<Self::Item> {
while self.line < self.grid.num_lines() {
while self.column < self.grid.num_cols() {
@@ -319,7 +319,7 @@ impl Term {
/// A renderable cell is any cell which has content other than the default
/// background color. Cells with an alternate background color are
/// considered renderable as are cells with any text content.
- pub fn renderable_cells<'a>(&'a mut self) -> RenderableCellsIter<'a> {
+ pub fn renderable_cells(&mut self) -> RenderableCellsIter {
RenderableCellsIter::new(&mut self.grid, &self.cursor, self.mode)
}
@@ -566,7 +566,7 @@ impl ansi::Handler for Term {
#[inline]
fn identify_terminal<W: io::Write>(&mut self, writer: &mut W) {
- let _ = writer.write_all("\x1b[?6c".as_bytes());
+ let _ = writer.write_all(b"\x1b[?6c");
}
#[inline]