Skip to content

Commit d9d3ad7

Browse files
committed
primitives - ChannelId remove Deref impl
1 parent bbfecd0 commit d9d3ad7

File tree

1 file changed

+0
-9
lines changed

1 file changed

+0
-9
lines changed

primitives/src/channel.rs

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -10,20 +10,11 @@ use crate::big_num::BigNum;
1010
use crate::util::serde::ts_milliseconds_option;
1111
use crate::{AdUnit, EventSubmission, TargetingTag, ValidatorDesc, ValidatorId};
1212
use hex::{FromHex, FromHexError};
13-
use std::ops::Deref;
1413

1514
#[derive(Serialize, Deserialize, PartialEq, Eq, Debug, Copy, Clone)]
1615
#[serde(transparent)]
1716
pub struct ChannelId(#[serde(with = "SerHex::<StrictPfx>")] [u8; 32]);
1817

19-
impl Deref for ChannelId {
20-
type Target = [u8];
21-
22-
fn deref(&self) -> &[u8] {
23-
&self.0
24-
}
25-
}
26-
2718
impl From<[u8; 32]> for ChannelId {
2819
fn from(array: [u8; 32]) -> Self {
2920
Self(array)

0 commit comments

Comments
 (0)