aboutsummaryrefslogtreecommitdiff
path: root/src/util.rs
diff options
context:
space:
mode:
authorManish Goregaokar <manishsmail@gmail.com>2017-01-06 20:44:51 -0800
committerManish Goregaokar <manishsmail@gmail.com>2017-01-06 20:44:51 -0800
commit4e1f4c8cd7180606156b71ad0222f60e4559f2b3 (patch)
tree28d7a983f5639270976de1f794cc54cb349ea4a8 /src/util.rs
parent49187d53f2f8b7cfca9105c3fb00d7c29e2a457b (diff)
downloadalacritty-4e1f4c8cd7180606156b71ad0222f60e4559f2b3.tar.gz
alacritty-4e1f4c8cd7180606156b71ad0222f60e4559f2b3.zip
Clippy fixes!
Diffstat (limited to 'src/util.rs')
-rw-r--r--src/util.rs1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/util.rs b/src/util.rs
index 2e34b2a6..ccb22cc9 100644
--- a/src/util.rs
+++ b/src/util.rs
@@ -15,6 +15,7 @@ use std::cmp;
#[cfg(not(feature = "nightly"))]
#[inline(always)]
+#[cfg_attr(feature = "clippy", allow(inline_always))]
pub unsafe fn unlikely(x: bool) -> bool {
x
}