From 52d504235d0e75994677d67213f196e58a5bb0e6 Mon Sep 17 00:00:00 2001 From: edef Date: Sun, 1 May 2022 17:21:45 +0000 Subject: ripple/fossil/chunker: drop unused derives Free test coverage win! :) Change-Id: I9bab30e0f0da2810c770cbd8ba5603f0eb2b28e7 --- ripple/fossil/src/chunker/buz.rs | 2 -- ripple/fossil/src/chunker/mod.rs | 1 - 2 files changed, 3 deletions(-) (limited to 'ripple/fossil/src') diff --git a/ripple/fossil/src/chunker/buz.rs b/ripple/fossil/src/chunker/buz.rs index 7e10b9f..377f4f8 100644 --- a/ripple/fossil/src/chunker/buz.rs +++ b/ripple/fossil/src/chunker/buz.rs @@ -3,7 +3,6 @@ use std::mem; -#[derive(Copy, Clone, PartialEq, Eq, Hash)] pub struct Hash(pub u32); impl Hash { @@ -16,7 +15,6 @@ impl Hash { } } -#[derive(Clone)] pub struct Rolling { i: usize, x: u32, diff --git a/ripple/fossil/src/chunker/mod.rs b/ripple/fossil/src/chunker/mod.rs index 3451990..108d5de 100644 --- a/ripple/fossil/src/chunker/mod.rs +++ b/ripple/fossil/src/chunker/mod.rs @@ -14,7 +14,6 @@ fn discriminator_from_average(avg: u64) -> u32 { (avg / (-1.42888852e-7 * avg + 1.33237515)) as u32 } -#[derive(Clone)] pub struct Chunker<'a> { buffer: &'a [u8], } -- cgit 1.4.1