Skip to content

Commit

Permalink
remove some unused import
Browse files Browse the repository at this point in the history
  • Loading branch information
daiyongxuan committed Oct 24, 2024
1 parent a1ab51a commit 04de822
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
7 changes: 4 additions & 3 deletions builder/src/chunkdict_generator.rs
Original file line number Diff line number Diff line change
Expand Up @@ -16,9 +16,10 @@
use super::core::node::{ChunkSource, NodeInfo};
use super::{BlobManager, Bootstrap, BootstrapManager, BuildContext, BuildOutput, Tree};
use crate::core::blob::{self, Blob};
use crate::core::blob::Blob;
use crate::core::node::Node;
use crate::OsString;
use crate::Path;
use crate::TreeNode;
use crate::{ArtifactWriter, BlobContext, NodeChunk};
use anyhow::{Ok, Result};
Expand Down Expand Up @@ -122,7 +123,7 @@ struct PrefetchBlobState {
}

impl PrefetchBlobState {
fn new(ctx: &BuildContext, blob_layer_num: u32, blobs_dir_path: &PathBuf) -> Result<Self> {
fn new(ctx: &BuildContext, blob_layer_num: u32, blobs_dir_path: &Path) -> Result<Self> {
let mut blob_info = BlobInfo::new(
blob_layer_num,
String::from("Prefetch-blob"),
Expand Down Expand Up @@ -317,7 +318,7 @@ impl Generator {
prefetch_state: &mut PrefetchBlobState,
batch: &mut BatchContextGenerator,
blobtable: &RafsV6BlobTable,
blobs_dir_path: &PathBuf,
blobs_dir_path: &Path,
) {
let tree_node = tree
.get_node_mut(&node.borrow().path())
Expand Down
2 changes: 1 addition & 1 deletion src/bin/nydus-image/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1841,7 +1841,7 @@ impl Command {
}
Ok(prefetch_files)
}
None => Ok(Vec::new()),
None => panic!("missing parameter `prefetch-files`"),
}
}

Expand Down
1 change: 0 additions & 1 deletion storage/src/backend/localfs.rs
Original file line number Diff line number Diff line change
Expand Up @@ -163,7 +163,6 @@ impl LocalFs {
}

let blob_file_path = self.get_blob_path(blob_id)?;
println!("blob file path: {}", blob_file_path.display());
let file = OpenOptions::new()
.read(true)
.open(&blob_file_path)
Expand Down

0 comments on commit 04de822

Please sign in to comment.