chore: remove useless default implementations
This commit is contained in:
		@@ -416,12 +416,6 @@ pub(super) mod common {
 | 
			
		||||
        }
 | 
			
		||||
    }
 | 
			
		||||
 | 
			
		||||
    impl Default for WavePattern {
 | 
			
		||||
        fn default() -> Self {
 | 
			
		||||
            Self::OneEighth // Rationale: OneEighth is 0x00
 | 
			
		||||
        }
 | 
			
		||||
    }
 | 
			
		||||
 | 
			
		||||
    impl From<WavePattern> for u8 {
 | 
			
		||||
        fn from(pattern: WavePattern) -> Self {
 | 
			
		||||
            pattern as Self
 | 
			
		||||
@@ -479,12 +473,6 @@ impl Clone for SoundOutput {
 | 
			
		||||
    }
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
impl Default for SoundOutput {
 | 
			
		||||
    fn default() -> Self {
 | 
			
		||||
        Self(0)
 | 
			
		||||
    }
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
impl From<u8> for SoundOutput {
 | 
			
		||||
    fn from(byte: u8) -> Self {
 | 
			
		||||
        Self(byte)
 | 
			
		||||
@@ -523,12 +511,6 @@ impl Clone for ChannelControl {
 | 
			
		||||
    }
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
impl Default for ChannelControl {
 | 
			
		||||
    fn default() -> Self {
 | 
			
		||||
        Self(0)
 | 
			
		||||
    }
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
impl From<u8> for ChannelControl {
 | 
			
		||||
    fn from(byte: u8) -> Self {
 | 
			
		||||
        Self(byte)
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user