From 50e6a82f0955bf5d489d311f2c9600c379006c37 Mon Sep 17 00:00:00 2001 From: Reiner Herrmann Date: Thu, 29 Aug 2019 21:23:58 +0200 Subject: Use dyn keyword for trait objects to fix deprecation warnings --- src/tftpd.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/tftpd.rs') 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> { + fn drop_privs(&self, uid: u32, gid: u32) -> Result<(), Box> { let root_uid = ROOT; let root_gid = Gid::from_raw(0); let unpriv_uid = Uid::from_raw(uid); -- cgit v1.2.3