chore: rm needless type annotation

This commit is contained in:
Zixuan Chen 2022-11-16 11:07:21 +08:00
parent 0fff16faf3
commit 33edd89e6e

View file

@ -40,9 +40,8 @@ struct ChangeEncoding {
lamport: Lamport, lamport: Lamport,
#[columnar(strategy = "DeltaRle", original_type = "i64")] #[columnar(strategy = "DeltaRle", original_type = "i64")]
timestamp: Timestamp, timestamp: Timestamp,
#[columnar(original_type = "u32")]
op_len: u32, op_len: u32,
#[columnar(strategy = "Rle", original_type = "u32")] #[columnar(strategy = "Rle")]
deps_len: u32, deps_len: u32,
} }
@ -52,9 +51,7 @@ struct OpEncoding {
#[columnar(strategy = "Rle", original_type = "u32")] #[columnar(strategy = "Rle", original_type = "u32")]
container: ContainerIdx, container: ContainerIdx,
/// key index or insert/delete pos /// key index or insert/delete pos
#[columnar(strategy = "DeltaRle", original_type = "u32")]
prop: usize, prop: usize,
#[columnar(strategy = "Rle", original_type = "u32")]
// TODO: can be compressed // TODO: can be compressed
gc: usize, gc: usize,
value: LoroValue, value: LoroValue,