src/pxar/format_definition.rs: fix typo

Signed-off-by: Christian Ebner <c.ebner@proxmox.com>
This commit is contained in:
Christian Ebner 2019-07-10 16:41:01 +02:00 committed by Dietmar Maurer
parent 9eae781ab8
commit 3f5192730e

View File

@ -313,7 +313,7 @@ pub fn compute_goodbye_hash(name: &[u8]) -> u64 {
pub fn check_ca_header<T>(head: &CaFormatHeader, htype: u64) -> Result<(), Error> {
if head.htype != htype {
bail!("got wrong header type ({:016x} != {:016x}", head.htype, htype);
bail!("got wrong header type ({:016x} != {:016x})", head.htype, htype);
}
if head.size != (std::mem::size_of::<T>() + std::mem::size_of::<CaFormatHeader>()) as u64 {
bail!("got wrong header size for type {:016x}", htype);