Skip to content

Commit

Permalink
Merge pull request #124 from ariel-miculas/fix_warnings
Browse files Browse the repository at this point in the history
Fix warnings reported by the latest version of rustc
  • Loading branch information
hallyn authored Feb 27, 2024
2 parents d7e27be + 6ad903a commit 3972e9f
Show file tree
Hide file tree
Showing 8 changed files with 0 additions and 15 deletions.
3 changes: 0 additions & 3 deletions puzzlefs-lib/src/builder.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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;

Expand Down
1 change: 0 additions & 1 deletion puzzlefs-lib/src/compression/zstd_seekable_wrapper.rs
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
use std::cmp::min;
use std::convert::TryFrom;
use std::io;
use std::io::{Read, Seek, Write};

Expand Down
3 changes: 0 additions & 3 deletions puzzlefs-lib/src/extractor.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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;

Expand Down
2 changes: 0 additions & 2 deletions puzzlefs-lib/src/format/types.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand All @@ -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;
Expand Down
1 change: 0 additions & 1 deletion puzzlefs-lib/src/oci.rs
Original file line number Diff line number Diff line change
@@ -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};
Expand Down
2 changes: 0 additions & 2 deletions puzzlefs-lib/src/reader/fuse.rs
Original file line number Diff line number Diff line change
@@ -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;
Expand Down Expand Up @@ -680,7 +679,6 @@ mod tests {
use std::io;
use std::path::Path;

use hex;
use sha2::{Digest, Sha256};
use tempfile::tempdir;

Expand Down
2 changes: 0 additions & 2 deletions puzzlefs-lib/src/reader/puzzlefs.rs
Original file line number Diff line number Diff line change
@@ -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};
Expand Down Expand Up @@ -231,7 +230,6 @@ mod tests {
use tempfile::tempdir;

use crate::builder::build_test_fs;
use crate::oci::Image;

use super::*;

Expand Down
1 change: 0 additions & 1 deletion puzzlefs-lib/src/reader/walk.rs
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,6 @@ mod tests {
use std::path::Path;

use crate::builder::build_test_fs;
use crate::oci::Image;

use super::*;

Expand Down

0 comments on commit 3972e9f

Please sign in to comment.