Skip to content

Commit 207488e

Browse files
committed
Remove impl From<BlobFormat> for ExportFormat
1 parent d2bb3ad commit 207488e

File tree

1 file changed

+0
-11
lines changed

1 file changed

+0
-11
lines changed

src/hash.rs

Lines changed: 0 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,6 @@ use std::{borrow::Borrow, fmt, str::FromStr};
55
use postcard::experimental::max_size::MaxSize;
66
use serde::{de, Deserialize, Deserializer, Serialize, Serializer};
77

8-
use crate::store::ExportFormat;
9-
108
/// Hash type used throughout.
119
#[derive(PartialEq, Eq, Copy, Clone, Hash)]
1210
pub struct Hash(blake3::Hash);
@@ -244,15 +242,6 @@ impl BlobFormat {
244242
}
245243
}
246244

247-
impl From<BlobFormat> for ExportFormat {
248-
fn from(value: BlobFormat) -> Self {
249-
match value {
250-
BlobFormat::Raw => ExportFormat::Blob,
251-
BlobFormat::HashSeq => ExportFormat::Collection,
252-
}
253-
}
254-
}
255-
256245
/// A hash and format pair
257246
#[derive(Debug, Clone, Copy, PartialEq, Eq, PartialOrd, Ord, MaxSize, Hash)]
258247
pub struct HashAndFormat {

0 commit comments

Comments
 (0)