Fix clippy stuff

This commit is contained in:
Ottatop 2023-12-19 15:32:33 -06:00
parent 4dbf1a313b
commit b1a97e81ed
3 changed files with 2 additions and 5 deletions

View file

@ -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();

View file

@ -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)

View file

@ -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 {