Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix warnings reported by the latest version of rustc #124

Merged
merged 1 commit into from
Feb 27, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading