Skip to content

Commit 9f27f45

Browse files
author
Max Dymond
authored
Merge pull request #274 from Metaswitch/md/mergedepbot
Fixing up Dependabot merges and clippy moans
2 parents 944ab35 + 747c243 commit 9f27f45

5 files changed

Lines changed: 178 additions & 43 deletions

File tree

Cargo.lock

Lines changed: 166 additions & 31 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Cargo.toml

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -19,14 +19,14 @@ log = "0.4"
1919
serde = { version = "1", features = ["derive"] }
2020
serde_yaml = "0.9"
2121
structopt = "0.3"
22-
uuid = { version = "1.2", features = ["v4"] }
22+
uuid = { version = "1.3", features = ["v4"] }
2323
yaml-rust = "0.4.4"
2424
simplelog = "0.12"
25-
nix = { version = "0.24", default-features = false, features = ["user"] }
25+
nix = { version = "0.26", default-features = false, features = ["user"] }
2626
shlex = "1.1"
27-
sha2 = "0.10.5"
28-
anyhow = "1.0.66"
29-
thiserror = "1.0.37"
27+
sha2 = "0.10.6"
28+
anyhow = "1.0.69"
29+
thiserror = "1.0.39"
3030

3131
[dev-dependencies]
32-
tempfile = "3.3.0"
32+
tempfile = "3.4.0"

src/command.rs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ impl Drop for DaemonHandle {
2828
fn drop(&mut self) {
2929
info!("Stopping daemon docker container '{}'", self.name);
3030
Command::new("docker")
31-
.args(&["kill", &self.name])
31+
.args(["kill", &self.name])
3232
.stdin(Stdio::null())
3333
.stdout(Stdio::null())
3434
.stderr(Stdio::null())
@@ -78,8 +78,8 @@ impl DockerCommandBuilder {
7878
pub fn start_as_daemon(self, command: &[&str]) -> Result<DaemonHandle, Error> {
7979
debug!("Starting daemon container '{}'", self.name);
8080
let exit_status = Command::new("docker")
81-
.args(&["run", "--rm"])
82-
.args(&["--name", &self.name])
81+
.args(["run", "--rm"])
82+
.args(["--name", &self.name])
8383
.args(&self.build_volume_switches())
8484
.args(self.build_environment_switches())
8585
.args(self.build_docker_switches())
@@ -202,6 +202,6 @@ pub fn enable_docker_in_docker(
202202
) -> Result<DockerCommandBuilder, Error> {
203203
Ok(command
204204
.add_docker_switch("--link")
205-
.add_docker_switch(&format!("{}:floki-docker", dind.name()))
205+
.add_docker_switch(format!("{}:floki-docker", dind.name()))
206206
.add_environment("DOCKER_HOST", "tcp://floki-docker:2375"))
207207
}

0 commit comments

Comments
 (0)