Skip to content

Commit

Permalink
Update to edition 2021
Browse files Browse the repository at this point in the history
Remove unnecessary imports now included in prelude

Signed-off-by: mulhern <amulhern@redhat.com>
  • Loading branch information
mulkieran committed Aug 16, 2022
1 parent e438c1d commit e3a9ce5
Show file tree
Hide file tree
Showing 4 changed files with 1 addition and 5 deletions.
2 changes: 1 addition & 1 deletion Cargo.toml
Expand Up @@ -9,7 +9,7 @@ readme = "README.md"
categories = ["os::linux-apis", "api-bindings"]
keywords = ["Linux", "device", "mapper", "libdm", "storage"]
license = "MPL-2.0"
edition = "2018"
edition = "2021"
exclude = [".clippy.toml", ".githooks/*", ".gitignore", ".github/*", "Makefile"]

[dependencies]
Expand Down
2 changes: 0 additions & 2 deletions src/core/deviceinfo.rs
Expand Up @@ -2,8 +2,6 @@
// License, v. 2.0. If a copy of the MPL was not distributed with this
// file, You can obtain one at http://mozilla.org/MPL/2.0/.

use std::convert::TryFrom;

use nix::libc::c_char;
use semver::Version;

Expand Down
1 change: 0 additions & 1 deletion src/core/dm.rs
Expand Up @@ -4,7 +4,6 @@

use std::{
cmp,
convert::TryInto,
fs::File,
io::{Cursor, Read, Write},
mem::size_of,
Expand Down
1 change: 0 additions & 1 deletion src/testing/loopbacked.rs
Expand Up @@ -3,7 +3,6 @@
// file, You can obtain one at http://mozilla.org/MPL/2.0/.

use std::{
convert::TryInto,
fs::OpenOptions,
io::{self, Seek, SeekFrom, Write},
os::unix::io::AsRawFd,
Expand Down

0 comments on commit e3a9ce5

Please sign in to comment.