diff --git a/puzzlefs-lib/src/builder.rs b/puzzlefs-lib/src/builder.rs index 533d8a3..4a312a6 100644 --- a/puzzlefs-lib/src/builder.rs +++ b/puzzlefs-lib/src/builder.rs @@ -522,13 +522,10 @@ pub mod tests { use super::*; use std::backtrace::Backtrace; - use std::convert::TryInto; use tempfile::tempdir; - use crate::oci::Digest; use crate::reader::WalkPuzzleFS; - use std::convert::TryFrom; use std::path::PathBuf; use tempfile::TempDir; diff --git a/puzzlefs-lib/src/compression/zstd_seekable_wrapper.rs b/puzzlefs-lib/src/compression/zstd_seekable_wrapper.rs index b10da92..d2cad25 100644 --- a/puzzlefs-lib/src/compression/zstd_seekable_wrapper.rs +++ b/puzzlefs-lib/src/compression/zstd_seekable_wrapper.rs @@ -1,5 +1,4 @@ use std::cmp::min; -use std::convert::TryFrom; use std::io; use std::io::{Read, Seek, Write}; diff --git a/puzzlefs-lib/src/extractor.rs b/puzzlefs-lib/src/extractor.rs index 294dfb6..54cfe40 100644 --- a/puzzlefs-lib/src/extractor.rs +++ b/puzzlefs-lib/src/extractor.rs @@ -150,12 +150,9 @@ pub fn extract_rootfs(oci_dir: &str, tag: &str, extract_dir: &str) -> anyhow::Re mod tests { use tempfile::{tempdir, TempDir}; - use std::fs; use std::fs::File; use crate::builder::build_test_fs; - use crate::oci::Image; - use std::collections::HashMap; use std::os::unix::fs::MetadataExt; use walkdir::WalkDir; diff --git a/puzzlefs-lib/src/format/types.rs b/puzzlefs-lib/src/format/types.rs index 357a95d..c472927 100644 --- a/puzzlefs-lib/src/format/types.rs +++ b/puzzlefs-lib/src/format/types.rs @@ -4,7 +4,6 @@ use nix::errno::Errno; use nix::sys::stat; use std::backtrace::Backtrace; use std::collections::BTreeMap; -use std::convert::{TryFrom, TryInto}; use std::ffi::OsStr; use std::ffi::OsString; use std::fmt; @@ -15,7 +14,6 @@ use std::os::unix::ffi::OsStrExt; use std::os::unix::ffi::OsStringExt; use std::os::unix::fs::{FileTypeExt, MetadataExt, PermissionsExt}; use std::path::Path; -use std::vec::Vec; use serde::de::Error as SerdeError; use serde::de::Visitor; diff --git a/puzzlefs-lib/src/oci.rs b/puzzlefs-lib/src/oci.rs index f99a520..c28d60b 100644 --- a/puzzlefs-lib/src/oci.rs +++ b/puzzlefs-lib/src/oci.rs @@ -1,7 +1,6 @@ use crate::fsverity_helpers::{check_fs_verity, get_fs_verity_digest}; use std::any::Any; use std::backtrace::Backtrace; -use std::convert::TryFrom; use std::fs; use std::io; use std::io::{Read, Seek}; diff --git a/puzzlefs-lib/src/reader/fuse.rs b/puzzlefs-lib/src/reader/fuse.rs index 881dd70..7949547 100644 --- a/puzzlefs-lib/src/reader/fuse.rs +++ b/puzzlefs-lib/src/reader/fuse.rs @@ -1,6 +1,5 @@ use log::{debug, warn}; use os_pipe::PipeWriter; -use std::convert::TryInto; use std::ffi::CString; use std::ffi::OsStr; use std::ffi::OsString; @@ -680,7 +679,6 @@ mod tests { use std::io; use std::path::Path; - use hex; use sha2::{Digest, Sha256}; use tempfile::tempdir; diff --git a/puzzlefs-lib/src/reader/puzzlefs.rs b/puzzlefs-lib/src/reader/puzzlefs.rs index f533cdf..0714772 100644 --- a/puzzlefs-lib/src/reader/puzzlefs.rs +++ b/puzzlefs-lib/src/reader/puzzlefs.rs @@ -1,7 +1,6 @@ use nix::errno::Errno; use std::backtrace::Backtrace; use std::cmp::min; -use std::convert::TryFrom; use std::io; use std::os::unix::ffi::OsStrExt; use std::path::{Component, Path}; @@ -231,7 +230,6 @@ mod tests { use tempfile::tempdir; use crate::builder::build_test_fs; - use crate::oci::Image; use super::*; diff --git a/puzzlefs-lib/src/reader/walk.rs b/puzzlefs-lib/src/reader/walk.rs index 737e2f3..57322f0 100644 --- a/puzzlefs-lib/src/reader/walk.rs +++ b/puzzlefs-lib/src/reader/walk.rs @@ -78,7 +78,6 @@ mod tests { use std::path::Path; use crate::builder::build_test_fs; - use crate::oci::Image; use super::*;