diff options
author | Lars Wirzenius <liw@liw.fi> | 2021-05-29 11:38:06 +0300 |
---|---|---|
committer | Lars Wirzenius <liw@liw.fi> | 2021-05-29 15:20:23 +0300 |
commit | cc62aac1a3ebdb1bf48a6520d430ad80948bcd51 (patch) | |
tree | ceb26e1a122e29e6e93986884a883fd628d4d58c /src/chunk.rs | |
parent | 08b71890de3407acc323f09330ebe8a8ee2782ec (diff) | |
download | obnam2-cc62aac1a3ebdb1bf48a6520d430ad80948bcd51.tar.gz |
refactor: make metadata part of a chunk
This makes is harder to accidentally use the wrong metadata for a
chunk.
Diffstat (limited to 'src/chunk.rs')
-rw-r--r-- | src/chunk.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/chunk.rs b/src/chunk.rs index 50a2fc7..8631fd9 100644 --- a/src/chunk.rs +++ b/src/chunk.rs @@ -10,7 +10,7 @@ use std::default::Default; /// /// A chunk also contains its associated metadata, except its /// identifier. -#[derive(Debug, Clone, Serialize, Deserialize)] +#[derive(Debug, Clone, Serialize, Deserialize, PartialEq)] pub struct DataChunk { data: Vec<u8>, meta: ChunkMeta, |