Skip to content

Commit

Permalink
clippy check
Browse files Browse the repository at this point in the history
  • Loading branch information
hugocaillard committed Oct 23, 2024
1 parent f633077 commit 327c617
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
2 changes: 2 additions & 0 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,8 @@ jobs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: test
run: cargo --version
- name: Run Clippy
run: cargo clippy --all-targets --all-features

Expand Down
6 changes: 3 additions & 3 deletions src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -124,10 +124,10 @@ async fn handle_request(
let request_time = SystemTime::now()
.duration_since(UNIX_EPOCH)
.expect("Could not get current time in secs")
.as_secs();
.as_secs() as u64;
if path == "/api/v1/networks" {
return match method {
&Method::POST => {
return match *method {
Method::POST => {
handle_new_devnet(
request,
&user_id,
Expand Down

0 comments on commit 327c617

Please sign in to comment.