Skip to content

Commit

Permalink
No IndexMut required
Browse files Browse the repository at this point in the history
  • Loading branch information
huntc committed Apr 4, 2023
1 parent 170d1fe commit a8abacf
Showing 1 changed file with 7 additions and 8 deletions.
15 changes: 7 additions & 8 deletions src/ser/flavors.rs
Original file line number Diff line number Diff line change
Expand Up @@ -429,13 +429,12 @@ pub mod crc {
use crc::Width;

use super::Flavor;
use super::IndexMut;
use crate::Result;

/// Manages CRC modifications as a flavor.
pub struct CrcModifier<'a, B, W>
where
B: Flavor + IndexMut<usize, Output = u8>,
B: Flavor,
W: Width,
{
flav: B,
Expand All @@ -444,7 +443,7 @@ pub mod crc {

impl<'a, B, W> CrcModifier<'a, B, W>
where
B: Flavor + IndexMut<usize, Output = u8>,
B: Flavor,
W: Width,
{
/// Create a new Crc modifier Flavor.
Expand All @@ -463,7 +462,7 @@ pub mod crc {

impl<'a, B> Flavor for CrcModifier<'a, B, u8>
where
B: Flavor + IndexMut<usize, Output = u8>,
B: Flavor,
{
type Output = <B as Flavor>::Output;

Expand All @@ -482,7 +481,7 @@ pub mod crc {

impl<'a, B> Flavor for CrcModifier<'a, B, u16>
where
B: Flavor + IndexMut<usize, Output = u8>,
B: Flavor,
{
type Output = <B as Flavor>::Output;

Expand All @@ -501,7 +500,7 @@ pub mod crc {

impl<'a, B> Flavor for CrcModifier<'a, B, u32>
where
B: Flavor + IndexMut<usize, Output = u8>,
B: Flavor,
{
type Output = <B as Flavor>::Output;

Expand All @@ -520,7 +519,7 @@ pub mod crc {

impl<'a, B> Flavor for CrcModifier<'a, B, u64>
where
B: Flavor + IndexMut<usize, Output = u8>,
B: Flavor,
{
type Output = <B as Flavor>::Output;

Expand All @@ -539,7 +538,7 @@ pub mod crc {

impl<'a, B> Flavor for CrcModifier<'a, B, u128>
where
B: Flavor + IndexMut<usize, Output = u8>,
B: Flavor,
{
type Output = <B as Flavor>::Output;

Expand Down

0 comments on commit a8abacf

Please sign in to comment.