tackle some minor clippy lints in ptyd and its dependencies
This commit is contained in:
@@ -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")) };
|
||||
|
||||
|
||||
Reference in New Issue
Block a user