mirror of
https://github.com/alacritty/alacritty
synced 2024-10-02 22:14:28 +00:00
Fix clippy warnings
This commit is contained in:
parent
7901b454ee
commit
6b45780f3a
|
@ -777,7 +777,7 @@ impl QuadRenderer {
|
|||
if let Ok(Msg::ShaderReload) = self.rx.try_recv() {
|
||||
self.reload_shaders(props);
|
||||
}
|
||||
while let Ok(_) = self.rx.try_recv() {}
|
||||
while self.rx.try_recv().is_ok() {}
|
||||
|
||||
unsafe {
|
||||
gl::UseProgram(self.program.id);
|
||||
|
|
|
@ -345,13 +345,6 @@ impl Window {
|
|||
}
|
||||
|
||||
pub fn set_fullscreen(&mut self, fullscreen: bool) {
|
||||
#[cfg(macos)]
|
||||
{
|
||||
if self.window().simple_fullscreen() {
|
||||
return;
|
||||
}
|
||||
}
|
||||
|
||||
if fullscreen {
|
||||
let current_monitor = self.window().current_monitor();
|
||||
self.window().set_fullscreen(Some(Fullscreen::Borderless(current_monitor)));
|
||||
|
@ -362,10 +355,6 @@ impl Window {
|
|||
|
||||
#[cfg(target_os = "macos")]
|
||||
pub fn set_simple_fullscreen(&mut self, simple_fullscreen: bool) {
|
||||
if self.window().fullscreen().is_some() {
|
||||
return;
|
||||
}
|
||||
|
||||
self.window().set_simple_fullscreen(simple_fullscreen);
|
||||
}
|
||||
|
||||
|
|
|
@ -2667,7 +2667,6 @@ mod benches {
|
|||
|
||||
use std::fs;
|
||||
use std::mem;
|
||||
use std::path::Path;
|
||||
|
||||
use crate::clipboard::Clipboard;
|
||||
use crate::config::MockConfig;
|
||||
|
|
Loading…
Reference in a new issue