Skip to content

Commit

Permalink
Fix clippy stuff
Browse files Browse the repository at this point in the history
  • Loading branch information
Ottatop committed Dec 19, 2023
1 parent 4dbf1a3 commit b1a97e8
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 5 deletions.
2 changes: 1 addition & 1 deletion src/backend.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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();
Expand Down
3 changes: 1 addition & 2 deletions src/backend/udev.rs
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@
use std::{
collections::{HashMap, HashSet},
ffi::OsString,
os::fd::FromRawFd,
path::Path,
time::Duration,
};
Expand Down Expand Up @@ -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)
Expand Down
2 changes: 0 additions & 2 deletions src/layout.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down

0 comments on commit b1a97e8

Please sign in to comment.