mirror of
https://github.com/pinnacle-comp/pinnacle.git
synced 2025-01-15 15:42:06 +01:00
Fix clippy stuff
This commit is contained in:
parent
4dbf1a313b
commit
b1a97e81ed
3 changed files with 2 additions and 5 deletions
|
@ -204,7 +204,7 @@ impl DmabufHandler for State {
|
||||||
.map_err(|_| ()),
|
.map_err(|_| ()),
|
||||||
};
|
};
|
||||||
|
|
||||||
if let Ok(_) = res {
|
if res.is_ok() {
|
||||||
let _ = notifier.successful::<State>();
|
let _ = notifier.successful::<State>();
|
||||||
} else {
|
} else {
|
||||||
notifier.failed();
|
notifier.failed();
|
||||||
|
|
|
@ -3,7 +3,6 @@
|
||||||
use std::{
|
use std::{
|
||||||
collections::{HashMap, HashSet},
|
collections::{HashMap, HashSet},
|
||||||
ffi::OsString,
|
ffi::OsString,
|
||||||
os::fd::FromRawFd,
|
|
||||||
path::Path,
|
path::Path,
|
||||||
time::Duration,
|
time::Duration,
|
||||||
};
|
};
|
||||||
|
@ -243,7 +242,7 @@ pub fn run_udev() -> anyhow::Result<()> {
|
||||||
let (session, notifier) = LibSeatSession::new()?;
|
let (session, notifier) = LibSeatSession::new()?;
|
||||||
|
|
||||||
// Get the primary gpu
|
// Get the primary gpu
|
||||||
let primary_gpu = udev::primary_gpu(&session.seat())
|
let primary_gpu = udev::primary_gpu(session.seat())
|
||||||
.context("unable to get primary gpu path")?
|
.context("unable to get primary gpu path")?
|
||||||
.and_then(|x| {
|
.and_then(|x| {
|
||||||
DrmNode::from_path(x)
|
DrmNode::from_path(x)
|
||||||
|
|
|
@ -258,8 +258,6 @@ fn master_stack(windows: Vec<WindowElement>, rect: Rectangle<i32, Logical>) {
|
||||||
let new_master_size: Size<i32, Logical> = (size.w / 2, size.h).into();
|
let new_master_size: Size<i32, Logical> = (size.w / 2, size.h).into();
|
||||||
master.change_geometry(Rectangle::from_loc_and_size(loc, new_master_size));
|
master.change_geometry(Rectangle::from_loc_and_size(loc, new_master_size));
|
||||||
|
|
||||||
let stack_count = stack_count;
|
|
||||||
|
|
||||||
let height = size.h as f32 / stack_count as f32;
|
let height = size.h as f32 / stack_count as f32;
|
||||||
let mut y_s = vec![];
|
let mut y_s = vec![];
|
||||||
for i in 0..stack_count {
|
for i in 0..stack_count {
|
||||||
|
|
Loading…
Reference in a new issue