mirror of
https://github.com/pinnacle-comp/pinnacle.git
synced 2024-12-26 21:58:10 +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(|_| ()),
|
||||
};
|
||||
|
||||
if let Ok(_) = res {
|
||||
if res.is_ok() {
|
||||
let _ = notifier.successful::<State>();
|
||||
} else {
|
||||
notifier.failed();
|
||||
|
|
|
@ -3,7 +3,6 @@
|
|||
use std::{
|
||||
collections::{HashMap, HashSet},
|
||||
ffi::OsString,
|
||||
os::fd::FromRawFd,
|
||||
path::Path,
|
||||
time::Duration,
|
||||
};
|
||||
|
@ -243,7 +242,7 @@ pub fn run_udev() -> anyhow::Result<()> {
|
|||
let (session, notifier) = LibSeatSession::new()?;
|
||||
|
||||
// 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")?
|
||||
.and_then(|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();
|
||||
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 mut y_s = vec![];
|
||||
for i in 0..stack_count {
|
||||
|
|
Loading…
Reference in a new issue