aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorJoe Wilm <joe@jwilm.com>2017-02-02 20:50:48 -0800
committerJoe Wilm <jwilm@users.noreply.github.com>2017-02-03 08:11:19 -0800
commitf2f750f9f3688e20d44bf43e6c0f568cf86edaa5 (patch)
tree176fa38cfe17e3b63e0df0dc3f9a14ce0db0d510 /src
parent875167a51006944da1a397fd0131b9aa69bf9a02 (diff)
downloadalacritty-f2f750f9f3688e20d44bf43e6c0f568cf86edaa5.tar.gz
alacritty-f2f750f9f3688e20d44bf43e6c0f568cf86edaa5.zip
Alacritty now compiles on stable Rust :tada:
Diffstat (limited to 'src')
-rw-r--r--src/config.rs2
-rw-r--r--src/term/cell.rs2
-rw-r--r--src/term/mod.rs3
-rw-r--r--src/tty.rs3
4 files changed, 3 insertions, 7 deletions
diff --git a/src/config.rs b/src/config.rs
index b8768c01..05147631 100644
--- a/src/config.rs
+++ b/src/config.rs
@@ -1314,8 +1314,6 @@ mod tests {
// Sanity check that key bindings are being parsed
assert!(config.key_bindings.len() >= 1);
-
- println!("config: {:#?}", config);
}
#[test]
diff --git a/src/term/cell.rs b/src/term/cell.rs
index e6e9f340..2cbdf14b 100644
--- a/src/term/cell.rs
+++ b/src/term/cell.rs
@@ -124,7 +124,7 @@ mod tests {
}
}
-#[cfg(test)]
+#[cfg(all(test, feature = "bench"))]
mod benches {
extern crate test;
use super::Cell;
diff --git a/src/term/mod.rs b/src/term/mod.rs
index 3cf06b2c..e4c64fa5 100644
--- a/src/term/mod.rs
+++ b/src/term/mod.rs
@@ -1264,7 +1264,6 @@ impl ansi::Handler for Term {
#[cfg(test)]
mod tests {
extern crate serde_json;
- extern crate test;
use super::{Term, limit, SizeInfo};
@@ -1314,7 +1313,7 @@ mod tests {
}
}
-#[cfg(test)]
+#[cfg(all(test, feature = "bench"))]
mod benches {
extern crate test;
extern crate serde_json as json;
diff --git a/src/tty.rs b/src/tty.rs
index 4fcf065f..ca5fad78 100644
--- a/src/tty.rs
+++ b/src/tty.rs
@@ -329,6 +329,5 @@ unsafe fn set_nonblocking(fd: c_int) {
#[test]
fn test_get_pw_entry() {
let mut buf: [i8; 1024] = [0; 1024];
- let pw = get_pw_entry(&mut buf);
- println!("{:?}", pw);
+ let _pw = get_pw_entry(&mut buf);
}