aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorReiner Herrmann <reiner@reiner-h.de>2022-10-29 22:10:52 +0200
committerReiner Herrmann <reiner@reiner-h.de>2022-10-29 22:10:52 +0200
commit1850849402f043e5eb6554774995b602a2d05d45 (patch)
treeb25396f57c4c39fdaa53986e9566e711fb532060 /src
parent541e91f36139bbcac284b5c2a1097a0a843f31db (diff)
"extern crate" no longer required
Diffstat (limited to 'src')
-rw-r--r--src/tftpc.rs3
-rw-r--r--src/tftpd.rs7
2 files changed, 0 insertions, 10 deletions
diff --git a/src/tftpc.rs b/src/tftpc.rs
index 89937c2..0b49c5e 100644
--- a/src/tftpc.rs
+++ b/src/tftpc.rs
@@ -10,11 +10,8 @@ use std::net::{SocketAddr, ToSocketAddrs, UdpSocket};
use std::path::{Path, PathBuf};
use std::time::Duration;
-extern crate getopts;
use getopts::Options;
-extern crate rtftp;
-
#[allow(clippy::upper_case_acronyms)]
enum Operation {
RRQ,
diff --git a/src/tftpd.rs b/src/tftpd.rs
index fea9d85..566b10b 100644
--- a/src/tftpd.rs
+++ b/src/tftpd.rs
@@ -12,17 +12,10 @@ use std::net::{SocketAddr, UdpSocket};
use std::path::{Path, PathBuf};
use std::time::Duration;
-extern crate nix;
use nix::unistd::{chroot, setresgid, setresuid, Gid, Uid, ROOT};
-
-extern crate getopts;
use getopts::Options;
-
-extern crate threadpool;
use threadpool::ThreadPool;
-extern crate rtftp;
-
#[derive(Clone)]
struct Configuration {
port: u16,