Skip to content
Snippets Groups Projects
Verified Commit 2e2e0f47 authored by João Magalhães's avatar João Magalhães :rocket:
Browse files

chore: add default implementation

parent 7ea4d77e
No related branches found
No related tags found
1 merge request!54Major improved of zippy format
Pipeline #4794 failed
......@@ -98,6 +98,12 @@ impl Crc32 {
}
}
impl Default for Crc32 {
fn default() -> Self {
Self::new()
}
}
pub fn crc32(data: &[u8]) -> u32 {
let mut crc32 = Crc32::new();
crc32.update(data);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment