Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

MRG: fix beta clippy errors #3548

Merged
merged 8 commits into from
Feb 26, 2025
8 changes: 3 additions & 5 deletions src/core/src/errors.rs
Original file line number Diff line number Diff line change
Expand Up @@ -164,11 +164,9 @@
match error {
SourmashError::Internal { .. } => SourmashErrorCode::Internal,
SourmashError::Panic { .. } => SourmashErrorCode::Panic,
SourmashError::CannotUpsampleScaled { .. } => SourmashErrorCode::CannotUpsampleScaled,
SourmashError::CannotUpsampleScaled => SourmashErrorCode::CannotUpsampleScaled,

Check warning on line 167 in src/core/src/errors.rs

View check run for this annotation

Codecov / codecov/patch

src/core/src/errors.rs#L167

Added line #L167 was not covered by tests
SourmashError::MismatchNum { .. } => SourmashErrorCode::MismatchNum,
SourmashError::NeedsAbundanceTracking { .. } => {
SourmashErrorCode::NeedsAbundanceTracking
}
SourmashError::NeedsAbundanceTracking => SourmashErrorCode::NeedsAbundanceTracking,

Check warning on line 169 in src/core/src/errors.rs

View check run for this annotation

Codecov / codecov/patch

src/core/src/errors.rs#L169

Added line #L169 was not covered by tests
SourmashError::MismatchKSizes => SourmashErrorCode::MismatchKSizes,
SourmashError::MismatchDNAProt => SourmashErrorCode::MismatchDNAProt,
SourmashError::MismatchScaled => SourmashErrorCode::MismatchScaled,
Expand All @@ -187,7 +185,7 @@
SourmashError::InvalidTranslateFrame { .. } => SourmashErrorCode::InvalidTranslateFrame,
SourmashError::ReadDataError { .. } => SourmashErrorCode::ReadData,
SourmashError::StorageError { .. } => SourmashErrorCode::Storage,
SourmashError::HLLPrecisionBounds { .. } => SourmashErrorCode::HLLPrecisionBounds,
SourmashError::HLLPrecisionBounds => SourmashErrorCode::HLLPrecisionBounds,

Check warning on line 188 in src/core/src/errors.rs

View check run for this annotation

Codecov / codecov/patch

src/core/src/errors.rs#L188

Added line #L188 was not covered by tests
SourmashError::ANIEstimationError { .. } => SourmashErrorCode::ANIEstimationError,
SourmashError::SerdeError { .. } => SourmashErrorCode::SerdeError,
SourmashError::IOError { .. } => SourmashErrorCode::Io,
Expand Down
Loading