all: use run-on-drop crate
This commit is contained in:
parent
346c6a7345
commit
0932ad11b5
19 changed files with 60 additions and 110 deletions
|
|
@ -15,9 +15,7 @@ use {
|
|||
security_context_acceptor::AcceptorMetadata,
|
||||
state::State,
|
||||
user_session::import_environment,
|
||||
utils::{
|
||||
buf::Buf, errorfmt::ErrorFmt, line_logger::log_lines, on_drop::OnDrop, oserror::OsError,
|
||||
},
|
||||
utils::{buf::Buf, errorfmt::ErrorFmt, line_logger::log_lines, oserror::OsError},
|
||||
wire::WlSurfaceId,
|
||||
xcon::XconError,
|
||||
xwayland::{
|
||||
|
|
@ -26,6 +24,7 @@ use {
|
|||
},
|
||||
},
|
||||
bstr::ByteSlice,
|
||||
run_on_drop::on_drop,
|
||||
std::{num::ParseIntError, rc::Rc},
|
||||
thiserror::Error,
|
||||
uapi::{OwnedFd, c, pipe2},
|
||||
|
|
@ -190,7 +189,7 @@ async fn run(
|
|||
state.ring.readable(&Rc::new(dfdread)).await?;
|
||||
state.xwayland.queue.clear();
|
||||
state.xwayland.pidfd.set(Some(pidfd.clone()));
|
||||
let _remove_pidfd = OnDrop(|| {
|
||||
let _remove_pidfd = on_drop(|| {
|
||||
state.xwayland.pidfd.take();
|
||||
});
|
||||
{
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue