about summary refs log tree commit diff
path: root/src/tools/remote-test-server
diff options
context:
space:
mode:
authorMazdak Farrokhzad <twingoow@gmail.com>2019-03-01 11:23:25 +0100
committerMazdak Farrokhzad <twingoow@gmail.com>2019-03-01 11:23:25 +0100
commitc259489209449a49d136dab4f09f7fcadd8f078c (patch)
treeb4fb44025cb950e5493f985abbb4574ea67a0934 /src/tools/remote-test-server
parent20cfc9deb5a85c4daf235871e47c0a81daa9b700 (diff)
downloadrust-c259489209449a49d136dab4f09f7fcadd8f078c.tar.gz
rust-c259489209449a49d136dab4f09f7fcadd8f078c.zip
tools/remote-test-{client,server}: deny(rust_2018_idioms)
Diffstat (limited to 'src/tools/remote-test-server')
-rw-r--r--src/tools/remote-test-server/src/main.rs4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/tools/remote-test-server/src/main.rs b/src/tools/remote-test-server/src/main.rs
index 750eea3a28a..e1270489d31 100644
--- a/src/tools/remote-test-server/src/main.rs
+++ b/src/tools/remote-test-server/src/main.rs
@@ -1,3 +1,5 @@
+#![deny(rust_2018_idioms)]
+
 /// This is a small server which is intended to run inside of an emulator or
 /// on a remote test device. This server pairs with the `remote-test-client`
 /// program in this repository. The `remote-test-client` connects to this
@@ -120,7 +122,7 @@ struct RemoveOnDrop<'a> {
     inner: &'a Path,
 }
 
-impl<'a> Drop for RemoveOnDrop<'a> {
+impl Drop for RemoveOnDrop<'_> {
     fn drop(&mut self) {
         t!(fs::remove_dir_all(self.inner));
     }