Skip to content

Commit d518d41

Browse files
refactor: replace unneeded field pattern with ..
This checker looks for struct field patterns bound to wildcards. Prefer `..` instead, as it is shorter and directs focus towards fields that are actually bound.
1 parent b96df03 commit d518d41

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/errors/routes.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ impl ApiError {
3838
impl From<ServiceError> for ApiError {
3939
fn from(err: ServiceError) -> Self {
4040
match err {
41-
ServiceError::DatabaseError { message, source: _ } => {
41+
ServiceError::DatabaseError { message, .. } => {
4242
ApiError::InternalServerError(format!("Database error: {}", message))
4343
}
4444
ServiceError::NotFound { resource, detail } => {

0 commit comments

Comments
 (0)