Apply 1 suggestion(s) to 1 file(s)

Co-authored-by: Wildan Mubarok <willnode@wellosoft.net>
This commit is contained in:
Mathew John Roberts
2026-06-17 12:46:36 +01:00
parent 997155ef2c
commit e957042c45
+1 -2
View File
@@ -43,8 +43,7 @@ pub struct Daemon {
impl Daemon {
/// Create a new daemon.
#[expect(clippy::new_ret_no_self)]
pub fn new(f: impl FnOnce(Daemon) -> !) -> ! {
pub fn new(f: impl FnOnce(Self) -> !) -> ! {
let write_pipe = unsafe { io::PipeWriter::from_raw_fd(get_fd("INIT_NOTIFY")) };
f(Daemon { write_pipe })