fingerprint: add bytes() accessor
needed for libproxmox-backup-qemu0 Signed-off-by: Fabian Grünbichler <f.gruenbichler@proxmox.com>
This commit is contained in:
		
				
					committed by
					
						 Dietmar Maurer
						Dietmar Maurer
					
				
			
			
				
	
			
			
			
						parent
						
							5176346b30
						
					
				
				
					commit
					af9f72e9d8
				
			| @ -47,6 +47,12 @@ pub struct Fingerprint { | ||||
|     bytes: [u8; 32], | ||||
| } | ||||
|  | ||||
| impl Fingerprint { | ||||
|     pub fn bytes(&self) -> &[u8; 32] { | ||||
|         &self.bytes | ||||
|     } | ||||
| } | ||||
|  | ||||
| /// Display as short key ID | ||||
| impl Display for Fingerprint { | ||||
|     fn fmt(&self, f: &mut fmt::Formatter<'_>) -> fmt::Result { | ||||
|  | ||||
		Reference in New Issue
	
	Block a user