diff --git a/src/fec/mod.rs b/src/fec/mod.rs index fcd64f9..2e366f0 100644 --- a/src/fec/mod.rs +++ b/src/fec/mod.rs @@ -14,7 +14,7 @@ pub enum ShardType { pub trait FecShard: Send + Sync + std::fmt::Debug { fn data(&self) -> &[u8]; fn esi(&self) -> u32; - fn get_type(&self) -> ShardType; + fn _get_type(&self) -> ShardType; } #[derive(Debug)] @@ -33,7 +33,7 @@ impl FecShard for DataFecShard { self.index } - fn get_type(&self) -> ShardType { + fn _get_type(&self) -> ShardType { self.shard_type } } diff --git a/src/fec/raptorq.rs b/src/fec/raptorq.rs index a01dc62..6f8b537 100644 --- a/src/fec/raptorq.rs +++ b/src/fec/raptorq.rs @@ -21,7 +21,7 @@ impl FecShard for RaptorFecShard { fn esi(&self) -> u32 { self.pkt.payload_id().encoding_symbol_id() } - fn get_type(&self) -> ShardType { + fn _get_type(&self) -> ShardType { self.shard_type } }