Skip to content

Commit 5b245c5

Browse files
Remove unneeded serde derives
1 parent 3f222e2 commit 5b245c5

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

crates/udd-sketch/src/lib.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -81,14 +81,14 @@ impl SketchHashKey {
8181
}
8282

8383
// Entries in the SketchHashMap contain a count and the next valid index of the map.
84-
#[derive(Serialize, Deserialize, Debug, Clone, PartialEq)]
84+
#[derive(Debug, Clone, PartialEq)]
8585
struct SketchHashEntry {
8686
count: u64,
8787
next: SketchHashKey,
8888
}
8989

9090
// SketchHashMap is a special hash map of SketchHashKey->count that also keeps the equivalent of a linked list of the entries by increasing key value.
91-
#[derive(Serialize, Deserialize, Debug, Clone, PartialEq)]
91+
#[derive(Debug, Clone, PartialEq)]
9292
struct SketchHashMap {
9393
map: HashMap<SketchHashKey, SketchHashEntry>,
9494
head: SketchHashKey,
@@ -255,7 +255,7 @@ impl SketchHashMap {
255255
}
256256
}
257257

258-
#[derive(Serialize, Deserialize, Clone, Debug, PartialEq)]
258+
#[derive(Clone, Debug, PartialEq)]
259259
pub struct UDDSketch {
260260
buckets: SketchHashMap,
261261
alpha: f64,

0 commit comments

Comments
 (0)