Skip to content

Commit

Permalink
fix clippy warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
c12i committed Sep 5, 2024
1 parent 8aed942 commit 25b6a3f
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 5 deletions.
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: "test"
name: "general"

on:
push:
Expand All @@ -7,7 +7,7 @@ on:
branches: [ main ]

jobs:
test:
test_fmt_lint:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
Expand Down
5 changes: 2 additions & 3 deletions src/error.rs
Original file line number Diff line number Diff line change
Expand Up @@ -38,13 +38,12 @@ impl IntoResponse for ChcServiceError {
// local chain is out of sync with CHC
// call get_record_data instead of adding record
tracing::error!("Invalid chain error: {}", e);
let response = (
(
StatusCode::from_u16(409).unwrap(),
rmp_serde::to_vec("Local chain is out of sync with the CHC")
.expect("Failed to serialize to MessagePack"),
)
.into_response();
response
.into_response()
}
Self::InternalError(e) => {
tracing::error!("Internal server error: {}", e);
Expand Down

0 comments on commit 25b6a3f

Please sign in to comment.