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() {
|
if let Ok(Msg::ShaderReload) = self.rx.try_recv() {
|
||||||
self.reload_shaders(props);
|
self.reload_shaders(props);
|
||||||
}
|
}
|
||||||
while let Ok(_) = self.rx.try_recv() {}
|
while self.rx.try_recv().is_ok() {}
|
||||||
|
|
||||||
unsafe {
|
unsafe {
|
||||||
gl::UseProgram(self.program.id);
|
gl::UseProgram(self.program.id);
|
||||||
|
|
|
@ -345,13 +345,6 @@ impl Window {
|
||||||
}
|
}
|
||||||
|
|
||||||
pub fn set_fullscreen(&mut self, fullscreen: bool) {
|
pub fn set_fullscreen(&mut self, fullscreen: bool) {
|
||||||
#[cfg(macos)]
|
|
||||||
{
|
|
||||||
if self.window().simple_fullscreen() {
|
|
||||||
return;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
if fullscreen {
|
if fullscreen {
|
||||||
let current_monitor = self.window().current_monitor();
|
let current_monitor = self.window().current_monitor();
|
||||||
self.window().set_fullscreen(Some(Fullscreen::Borderless(current_monitor)));
|
self.window().set_fullscreen(Some(Fullscreen::Borderless(current_monitor)));
|
||||||
|
@ -362,10 +355,6 @@ impl Window {
|
||||||
|
|
||||||
#[cfg(target_os = "macos")]
|
#[cfg(target_os = "macos")]
|
||||||
pub fn set_simple_fullscreen(&mut self, simple_fullscreen: bool) {
|
pub fn set_simple_fullscreen(&mut self, simple_fullscreen: bool) {
|
||||||
if self.window().fullscreen().is_some() {
|
|
||||||
return;
|
|
||||||
}
|
|
||||||
|
|
||||||
self.window().set_simple_fullscreen(simple_fullscreen);
|
self.window().set_simple_fullscreen(simple_fullscreen);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -2667,7 +2667,6 @@ mod benches {
|
||||||
|
|
||||||
use std::fs;
|
use std::fs;
|
||||||
use std::mem;
|
use std::mem;
|
||||||
use std::path::Path;
|
|
||||||
|
|
||||||
use crate::clipboard::Clipboard;
|
use crate::clipboard::Clipboard;
|
||||||
use crate::config::MockConfig;
|
use crate::config::MockConfig;
|
||||||
|
|
Loading…
Reference in New Issue