1
0
Fork 0
mirror of https://github.com/Zedfrigg/ironbar.git synced 2025-08-17 06:41:03 +02:00

refactor: fix new clippy warnings

This commit is contained in:
Jake Stanger 2023-06-29 16:57:47 +01:00
parent 27f920d012
commit cc181a8b6d
No known key found for this signature in database
GPG key ID: C51FC8F9CB0BEA61
13 changed files with 42 additions and 43 deletions

View file

@ -291,14 +291,14 @@ impl DataControlSourceHandler for Environment {
let mut events = (0..16).map(|_| EpollEvent::empty()).collect::<Vec<_>>();
let mut epoll_event = EpollEvent::new(EpollFlags::EPOLLOUT, 0);
let epoll_fd = epoll_create().unwrap();
let epoll_fd = epoll_create().expect("to get valid file descriptor");
epoll_ctl(
epoll_fd,
EpollOp::EpollCtlAdd,
fd.as_raw_fd(),
&mut epoll_event,
)
.unwrap();
.expect("to send valid epoll operation");
while !bytes.is_empty() {
let chunk = &bytes[..min(pipe_size as usize, bytes.len())];