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:
parent
4cf18ef995
commit
c720c4d3f4
1 changed files with 3 additions and 3 deletions
|
@ -749,9 +749,9 @@ impl<'a> RenderApi<'a> {
|
|||
let (flash, intensity) = (self.config.visual_bell().color(), self.visual_bell_intensity);
|
||||
unsafe {
|
||||
gl::ClearColor(
|
||||
mix(color.r as f32 / 255.0, flash.r as f32 / 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(color.b as f32 / 255.0, flash.b 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(f32::from(color.g) / 255.0, f32::from(flash.g) / 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
|
||||
);
|
||||
gl::Clear(gl::COLOR_BUFFER_BIT);
|
||||
|
|
Loading…
Reference in a new issue