diff options
| -rw-r--r-- | src/lib.rs | 2 | ||||
| -rw-r--r-- | src/tftpd.rs | 2 |
2 files changed, 2 insertions, 2 deletions
@@ -163,7 +163,7 @@ impl Tftp { /// This function will always fill the buffer completely (like expected from /// read_exact), but also works with EOF, by filling the buffer partially and /// returning the amount of bytes read. - fn read_exact(&self, reader: &mut Read, buf: &mut [u8]) -> Result<usize, io::Error> { + fn read_exact(&self, reader: &mut dyn Read, buf: &mut [u8]) -> Result<usize, io::Error> { let maxlen = buf.len(); let mut outbuf = Vec::with_capacity(maxlen); let mut len = 0; diff --git a/src/tftpd.rs b/src/tftpd.rs index 638c5d5..5342145 100644 --- a/src/tftpd.rs +++ b/src/tftpd.rs @@ -206,7 +206,7 @@ impl Tftpd { } } - fn drop_privs(&self, uid: u32, gid: u32) -> Result<(), Box<Error>> { + fn drop_privs(&self, uid: u32, gid: u32) -> Result<(), Box<dyn Error>> { let root_uid = ROOT; let root_gid = Gid::from_raw(0); let unpriv_uid = Uid::from_raw(uid); |
