Skip to content

Commit 84e008d

Browse files
obeisandreeaflorescu
authored andcommitted
Upgrade to 2021 edition
Signed-off-by: Obei Sideg <[email protected]>
1 parent eeed842 commit 84e008d

File tree

3 files changed

+1
-4
lines changed

3 files changed

+1
-4
lines changed

Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ authors = ["Liu Jiang <[email protected]>"]
88
repository = "https://github.com/rust-vmm/vm-memory"
99
readme = "README.md"
1010
license = "Apache-2.0 OR BSD-3-Clause"
11-
edition = "2018"
11+
edition = "2021"
1212
autobenches = false
1313

1414
[features]

src/bitmap/backend/atomic_bitmap.rs

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -143,8 +143,6 @@ impl Default for AtomicBitmap {
143143
#[cfg(feature = "backend-mmap")]
144144
impl NewBitmap for AtomicBitmap {
145145
fn with_len(len: usize) -> Self {
146-
use std::convert::TryFrom;
147-
148146
let page_size;
149147

150148
#[cfg(unix)]

src/volatile_memory.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,6 @@
2424
//! not reordered or elided the access.
2525
2626
use std::cmp::min;
27-
use std::convert::TryFrom;
2827
use std::error;
2928
use std::fmt;
3029
use std::io::{self, Read, Write};

0 commit comments

Comments
 (0)