summaryrefslogtreecommitdiff
path: root/src/term/cell.rs
diff options
context:
space:
mode:
authorChristian Duerr <chrisduerr@users.noreply.github.com>2018-01-06 01:42:55 +0000
committerGitHub <noreply@github.com>2018-01-06 01:42:55 +0000
commit2920cbe7103f03a45080bfb7610bd7f481f36361 (patch)
tree4839deca8a54d8e2546d124eb26178fd1eac4d4a /src/term/cell.rs
parent650b5a0cbaccc6de2b53240372c2be79739d5d12 (diff)
downloadalacritty-2920cbe7103f03a45080bfb7610bd7f481f36361.tar.gz
alacritty-2920cbe7103f03a45080bfb7610bd7f481f36361.zip
Add clippy check to travis
This commit adds clippy as a required step of the build process. To make this possible, all existing clippy issues have been resolved.
Diffstat (limited to 'src/term/cell.rs')
-rw-r--r--src/term/cell.rs20
1 files changed, 10 insertions, 10 deletions
diff --git a/src/term/cell.rs b/src/term/cell.rs
index 7ad2aed0..16e08cba 100644
--- a/src/term/cell.rs
+++ b/src/term/cell.rs
@@ -18,15 +18,15 @@ use index::Column;
bitflags! {
#[derive(Serialize, Deserialize)]
pub struct Flags: u32 {
- const INVERSE = 0b00000001;
- const BOLD = 0b00000010;
- const ITALIC = 0b00000100;
- const UNDERLINE = 0b00001000;
- const WRAPLINE = 0b00010000;
- const WIDE_CHAR = 0b00100000;
- const WIDE_CHAR_SPACER = 0b01000000;
- const DIM = 0b10000000;
- const DIM_BOLD = 0b10000010;
+ const INVERSE = 0b0000_0001;
+ const BOLD = 0b0000_0010;
+ const ITALIC = 0b0000_0100;
+ const UNDERLINE = 0b0000_1000;
+ const WRAPLINE = 0b0001_0000;
+ const WIDE_CHAR = 0b0010_0000;
+ const WIDE_CHAR_SPACER = 0b0100_0000;
+ const DIM = 0b1000_0000;
+ const DIM_BOLD = 0b1000_0010;
}
}
@@ -92,7 +92,7 @@ impl Cell {
pub fn new(c: char, fg: Color, bg: Color) -> Cell {
Cell {
- c: c.into(),
+ c: c,
bg: bg,
fg: fg,
flags: Flags::empty(),