Skip to content

Commit a353779

Browse files
authored
Merge pull request #33 from cgwalters/edition-2021
Update to Rust 2021
2 parents 11e0529 + a0bf73a commit a353779

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[package]
22
description = "Interact with the github.com/containers/image library via skopeo"
3-
edition = "2018"
3+
edition = "2021"
44
license = "MIT OR Apache-2.0"
55
name = "containers-image-proxy"
66
readme = "README.md"

src/imageproxy.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,6 @@ use nix::sys::socket::{self as nixsocket, ControlMessageOwned};
1010
use nix::sys::uio::IoVec;
1111
use once_cell::sync::Lazy;
1212
use serde::{Deserialize, Serialize};
13-
use std::convert::TryFrom;
1413
use std::fs::File;
1514
use std::os::unix::io::AsRawFd;
1615
use std::os::unix::prelude::{CommandExt, FromRawFd, RawFd};
@@ -419,6 +418,7 @@ impl ImageProxy {
419418
/// Close the connection and wait for the child process to exit successfully.
420419
#[instrument]
421420
pub async fn finalize(self) -> Result<()> {
421+
let _ = &self;
422422
let req = Request::new_bare("Shutdown");
423423
let sendbuf = serde_json::to_vec(&req)?;
424424
// SAFETY: Only panics if a worker thread already panic'd

0 commit comments

Comments
 (0)