Skip to content

Commit c259489

Browse files
committed
tools/remote-test-{client,server}: deny(rust_2018_idioms)
1 parent 20cfc9d commit c259489

File tree

2 files changed

+6
-2
lines changed

2 files changed

+6
-2
lines changed

src/tools/remote-test-client/src/main.rs

+3-1
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
#![deny(rust_2018_idioms)]
2+
13
/// This is a small client program intended to pair with `remote-test-server` in
24
/// this repository. This client connects to the server over TCP and is used to
35
/// push artifacts and run tests on the server instead of locally.
@@ -15,7 +17,7 @@ use std::process::{Command, Stdio};
1517
use std::thread;
1618
use std::time::Duration;
1719

18-
const REMOTE_ADDR_ENV: &'static str = "TEST_DEVICE_ADDR";
20+
const REMOTE_ADDR_ENV: &str = "TEST_DEVICE_ADDR";
1921

2022
macro_rules! t {
2123
($e:expr) => (match $e {

src/tools/remote-test-server/src/main.rs

+3-1
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
#![deny(rust_2018_idioms)]
2+
13
/// This is a small server which is intended to run inside of an emulator or
24
/// on a remote test device. This server pairs with the `remote-test-client`
35
/// program in this repository. The `remote-test-client` connects to this
@@ -120,7 +122,7 @@ struct RemoveOnDrop<'a> {
120122
inner: &'a Path,
121123
}
122124

123-
impl<'a> Drop for RemoveOnDrop<'a> {
125+
impl Drop for RemoveOnDrop<'_> {
124126
fn drop(&mut self) {
125127
t!(fs::remove_dir_all(self.inner));
126128
}

0 commit comments

Comments
 (0)