tackle some minor clippy lints in ptyd and its dependencies

This commit is contained in:
auronandace
2026-06-17 10:41:06 +01:00
parent dab7d039e2
commit 997155ef2c
5 changed files with 6 additions and 4 deletions
+2
View File
@@ -43,6 +43,7 @@ pub struct Daemon {
impl Daemon {
/// Create a new daemon.
#[expect(clippy::new_ret_no_self)]
pub fn new(f: impl FnOnce(Daemon) -> !) -> ! {
let write_pipe = unsafe { io::PipeWriter::from_raw_fd(get_fd("INIT_NOTIFY")) };
@@ -89,6 +90,7 @@ pub struct SchemeDaemon {
impl SchemeDaemon {
/// Create a new daemon for use with schemes.
#[expect(clippy::new_ret_no_self)]
pub fn new(f: impl FnOnce(SchemeDaemon) -> !) -> ! {
let write_pipe = unsafe { io::PipeWriter::from_raw_fd(get_fd("INIT_NOTIFY")) };