From 65bf28fbfcd91f430a8f3d1dbf669d7c398aac50 Mon Sep 17 00:00:00 2001 From: Reiner Herrmann Date: Sat, 2 Mar 2019 18:29:45 +0100 Subject: Move main tftp module into lib to be used as crate Otherwise compiler throws warnings about unused symbols, if not every public function is used in every module importing it. --- src/tftpd.rs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src/tftpd.rs') diff --git a/src/tftpd.rs b/src/tftpd.rs index ce108de..4773664 100644 --- a/src/tftpd.rs +++ b/src/tftpd.rs @@ -18,7 +18,7 @@ use nix::unistd::{Gid,Uid,setresgid,setresuid}; extern crate getopts; use getopts::Options; -mod tftp; +extern crate rtftp; struct Configuration { port: u16, @@ -30,14 +30,14 @@ struct Configuration { } struct Tftpd { - tftp: tftp::Tftp, + tftp: rtftp::Tftp, conf: Configuration, } impl Tftpd { pub fn new(conf: Configuration) -> Tftpd { Tftpd{ - tftp: tftp::Tftp::new(), + tftp: rtftp::Tftp::new(), conf: conf, } } -- cgit v1.2.3