aboutsummaryrefslogtreecommitdiff
path: root/src/logging.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/logging.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/logging.rs')
-rw-r--r--src/logging.rs2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/logging.rs b/src/logging.rs
index 4584b5f6..1fe769fd 100644
--- a/src/logging.rs
+++ b/src/logging.rs
@@ -28,6 +28,8 @@ pub struct Logger<T> {
}
impl<T: Send + io::Write> Logger<T> {
+ // False positive, see: https://github.com/rust-lang-nursery/rust-clippy/issues/734
+ #[cfg_attr(feature = "clippy", allow(new_ret_no_self))]
pub fn new(output: T, level: log::LogLevelFilter) -> Logger<io::LineWriter<T>> {
Logger {
level: level,