src/pxar/format_definition.rs: fix typo
Signed-off-by: Christian Ebner <c.ebner@proxmox.com>
This commit is contained in:
		
				
					committed by
					
						
						Dietmar Maurer
					
				
			
			
				
	
			
			
			
						parent
						
							9eae781ab8
						
					
				
				
					commit
					3f5192730e
				
			@ -313,7 +313,7 @@ pub fn compute_goodbye_hash(name: &[u8]) -> u64 {
 | 
				
			|||||||
 | 
					
 | 
				
			||||||
pub fn check_ca_header<T>(head: &CaFormatHeader, htype: u64) -> Result<(), Error> {
 | 
					pub fn check_ca_header<T>(head: &CaFormatHeader, htype: u64) -> Result<(), Error> {
 | 
				
			||||||
    if head.htype != htype {
 | 
					    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 {
 | 
					    if head.size != (std::mem::size_of::<T>() + std::mem::size_of::<CaFormatHeader>()) as u64 {
 | 
				
			||||||
        bail!("got wrong header size for type {:016x}", htype);
 | 
					        bail!("got wrong header size for type {:016x}", htype);
 | 
				
			||||||
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user