]> git.proxmox.com Git - proxmox-backup.git/commitdiff
src/backup/data_blob.rs: expose verify_crc again
authorDietmar Maurer <dietmar@proxmox.com>
Wed, 16 Sep 2020 08:43:42 +0000 (10:43 +0200)
committerDietmar Maurer <dietmar@proxmox.com>
Wed, 16 Sep 2020 08:43:42 +0000 (10:43 +0200)
src/backup/data_blob.rs

index 7902328d267149b2ae6d13af3a880275d741383a..b687be04a02ee6152885c7f2029c6ec437f1e574 100644 (file)
@@ -72,7 +72,7 @@ impl DataBlob {
     }
 
     // verify the CRC32 checksum
-    fn verify_crc(&self) -> Result<(), Error> {
+    pub fn verify_crc(&self) -> Result<(), Error> {
         let expected_crc = self.compute_crc();
         if expected_crc != self.crc() {
             bail!("Data blob has wrong CRC checksum.");