Skip to content

Commit

Permalink
chore: Fix clippy errors
Browse files Browse the repository at this point in the history
  • Loading branch information
vadorovsky committed Jul 1, 2024
1 parent 85e2c82 commit e83d59c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions crates/bpf-common/src/containers/layers.rs
Original file line number Diff line number Diff line change
Expand Up @@ -136,7 +136,7 @@ fn docker_btrfs_layers(image_id: &str) -> Result<Vec<PathBuf>, ContainerError> {

let mut layers = Vec::new();

let path = PathBuf::from(DOCKER_IMAGEDB_PATH).join(&image_id);
let path = PathBuf::from(DOCKER_IMAGEDB_PATH).join(image_id);
let file = File::open(&path).map_err(|source| ContainerError::ReadFile {
source,
path: path.clone(),
Expand All @@ -152,7 +152,7 @@ fn docker_btrfs_layers(image_id: &str) -> Result<Vec<PathBuf>, ContainerError> {
.last()
.ok_or(ContainerError::InvalidLayerID(layer_id.clone()))?;

let path = PathBuf::from(DOCKER_LAYERDB_PATH).join(&layer_id);
let path = PathBuf::from(DOCKER_LAYERDB_PATH).join(layer_id);
if path.exists() {
let path = path.join("cache-id");
let btrfs_subvol_id = fs::read_to_string(&path)
Expand Down

0 comments on commit e83d59c

Please sign in to comment.