Fix linting errors
This commit is contained in:
@ -38,9 +38,9 @@ impl From<SwrDitherType> for Dither {
|
||||
}
|
||||
}
|
||||
|
||||
impl Into<SwrDitherType> for Dither {
|
||||
fn into(self) -> SwrDitherType {
|
||||
match self {
|
||||
impl From<Dither> for SwrDitherType {
|
||||
fn from(value: Dither) -> SwrDitherType {
|
||||
match value {
|
||||
Dither::None => SWR_DITHER_NONE,
|
||||
Dither::Rectangular => SWR_DITHER_RECTANGULAR,
|
||||
Dither::Triangular => SWR_DITHER_TRIANGULAR,
|
||||
|
@ -17,9 +17,9 @@ impl From<SwrEngine> for Engine {
|
||||
}
|
||||
}
|
||||
|
||||
impl Into<SwrEngine> for Engine {
|
||||
fn into(self) -> SwrEngine {
|
||||
match self {
|
||||
impl From<Engine> for SwrEngine {
|
||||
fn from(value: Engine) -> SwrEngine {
|
||||
match value {
|
||||
Engine::Software => SWR_ENGINE_SWR,
|
||||
Engine::SoundExchange => SWR_ENGINE_SOXR,
|
||||
}
|
||||
|
@ -18,9 +18,9 @@ impl From<SwrFilterType> for Filter {
|
||||
}
|
||||
}
|
||||
|
||||
impl Into<SwrFilterType> for Filter {
|
||||
fn into(self) -> SwrFilterType {
|
||||
match self {
|
||||
impl From<Filter> for SwrFilterType {
|
||||
fn from(value: Filter) -> SwrFilterType {
|
||||
match value {
|
||||
Filter::Cubic => SWR_FILTER_TYPE_CUBIC,
|
||||
Filter::BlackmanNuttall => SWR_FILTER_TYPE_BLACKMAN_NUTTALL,
|
||||
Filter::Kaiser => SWR_FILTER_TYPE_KAISER,
|
||||
|
@ -26,9 +26,9 @@ impl From<c_int> for ColorSpace {
|
||||
}
|
||||
}
|
||||
|
||||
impl Into<c_int> for ColorSpace {
|
||||
fn into(self) -> c_int {
|
||||
match self {
|
||||
impl From<ColorSpace> for c_int {
|
||||
fn from(value: ColorSpace) -> c_int {
|
||||
match value {
|
||||
ColorSpace::Default => SWS_CS_DEFAULT,
|
||||
ColorSpace::ITU709 => SWS_CS_ITU709,
|
||||
ColorSpace::FCC => SWS_CS_FCC,
|
||||
|
Reference in New Issue
Block a user