1
0
Fork 0
mirror of https://github.com/alacritty/alacritty.git synced 2024-11-18 13:55:23 -05:00

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.
This commit is contained in:
Christian Duerr 2018-01-06 01:42:55 +00:00 committed by Christian Duerr
parent 4cf18ef995
commit c720c4d3f4
No known key found for this signature in database
GPG key ID: 85CDAE3C164BA7B4

View file

@ -749,9 +749,9 @@ impl<'a> RenderApi<'a> {
let (flash, intensity) = (self.config.visual_bell().color(), self.visual_bell_intensity); let (flash, intensity) = (self.config.visual_bell().color(), self.visual_bell_intensity);
unsafe { unsafe {
gl::ClearColor( gl::ClearColor(
mix(color.r as f32 / 255.0, flash.r as f32 / 255.0, intensity).min(1.0) * alpha, mix(f32::from(color.r) / 255.0, f32::from(flash.r) / 255.0, intensity).min(1.0) * alpha,
mix(color.g as f32 / 255.0, flash.g as f32 / 255.0, intensity).min(1.0) * alpha, mix(f32::from(color.g) / 255.0, f32::from(flash.g) / 255.0, intensity).min(1.0) * alpha,
mix(color.b as f32 / 255.0, flash.b as f32 / 255.0, intensity).min(1.0) * alpha, mix(f32::from(color.b) / 255.0, f32::from(flash.b) / 255.0, intensity).min(1.0) * alpha,
alpha alpha
); );
gl::Clear(gl::COLOR_BUFFER_BIT); gl::Clear(gl::COLOR_BUFFER_BIT);