Skip to content

Commit 55dcb2a

Browse files
authored
feat(types): remove Deserialize from Row & Sample (#580)
1 parent c79b48a commit 55dcb2a

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

types/src/row.rs

+2-2
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ use celestia_proto::shwap::{row::HalfSide as RawHalfSide, Row as RawRow, Share a
1414
use cid::CidGeneric;
1515
use multihash::Multihash;
1616
use prost::Message;
17-
use serde::{Deserialize, Serialize};
17+
use serde::Serialize;
1818

1919
use crate::consts::appconsts::SHARE_SIZE;
2020
use crate::eds::ExtendedDataSquare;
@@ -49,7 +49,7 @@ pub struct RowId {
4949
}
5050

5151
/// Row together with the data
52-
#[derive(Clone, Debug, Serialize, Deserialize)]
52+
#[derive(Clone, Debug, Serialize)]
5353
#[serde(into = "RawRow")]
5454
pub struct Row {
5555
/// Shares contained in the row

types/src/sample.rs

+2-2
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ use cid::CidGeneric;
1414
use multihash::Multihash;
1515
use nmt_rs::nmt_proof::NamespaceProof as NmtNamespaceProof;
1616
use prost::Message;
17-
use serde::{Deserialize, Serialize};
17+
use serde::Serialize;
1818

1919
use crate::eds::{AxisType, ExtendedDataSquare};
2020
use crate::nmt::NamespaceProof;
@@ -39,7 +39,7 @@ pub struct SampleId {
3939
}
4040

4141
/// Represents Sample, with proof of its inclusion
42-
#[derive(Clone, Debug, Serialize, Deserialize)]
42+
#[derive(Clone, Debug, Serialize)]
4343
#[serde(into = "RawSample")]
4444
pub struct Sample {
4545
/// Indication whether proving was done row or column-wise

0 commit comments

Comments
 (0)