Fix new clippy lints

pull/14/head
Dominik Nakamura 3 years ago
parent d1b33b7bf1
commit 7f0e6e7fe9
No known key found for this signature in database
GPG Key ID: E4C6A749B2491910

@ -1171,7 +1171,7 @@ bitflags! {
impl QtWindowState {
/// Convert the state into a byte array for usage in [`QtGeometry::serialize`] .
fn to_be_bytes(&self) -> [u8; 2] {
fn to_be_bytes(self) -> [u8; 2] {
[
if self.contains(Self::MAXIMIZED) { 1 } else { 0 },
if self.contains(Self::FULLSCREEN) {

Loading…
Cancel
Save