Fix linting errors

This commit is contained in:
Polochon-street
2021-07-06 19:05:15 +02:00
parent 67fded37d0
commit 19ab5f67ad
33 changed files with 109 additions and 108 deletions

View File

@ -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,

View File

@ -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,
}

View File

@ -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,

View File

@ -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,