Skip to content

Commit

Permalink
clippy: apply clippy suggestions
Browse files Browse the repository at this point in the history
Signed-off-by: Soc Virnyl Estela <[email protected]>
  • Loading branch information
uncomfyhalomacro committed Dec 20, 2023
1 parent ac8ee6b commit 643c65d
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions cargo/src/cli.rs
Original file line number Diff line number Diff line change
Expand Up @@ -324,8 +324,8 @@ impl Vendor for Src {
}
};
drop(newworkdir);
Ok(tmpdir
tmpdir
.close()
.map_err(|err| OBSCargoError::new(OBSCargoErrorKind::VendorError, err.to_string()))?)
.map_err(|err| OBSCargoError::new(OBSCargoErrorKind::VendorError, err.to_string()))
}
}
2 changes: 1 addition & 1 deletion cargo/src/utils/compress.rs
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ pub fn tar_builder<T: Write>(
}
}

Ok(builder.finish()?)
builder.finish()
}

pub fn targz(
Expand Down
4 changes: 2 additions & 2 deletions cargo/src/vendor.rs
Original file line number Diff line number Diff line change
Expand Up @@ -92,15 +92,15 @@ pub fn vendor(
)
})?;
// Write the stdout which is used by the package later.
Ok(file_cargo_config
file_cargo_config
.write_all(cargo_vendor_output.as_bytes())
.map_err(|err| {
error!(?err, "Failed to write to file for cargo config");
OBSCargoError::new(
OBSCargoErrorKind::VendorError,
"failed to write to file for cargo config".to_string(),
)
})?)
})
}

pub fn compress(
Expand Down

0 comments on commit 643c65d

Please sign in to comment.