From 327c617723fb861050d6d90a1fe7c1e286190a9d Mon Sep 17 00:00:00 2001 From: Hugo Caillard <911307+hugocaillard@users.noreply.github.com> Date: Wed, 23 Oct 2024 14:51:50 +0200 Subject: [PATCH] clippy check --- .github/workflows/ci.yaml | 2 ++ src/main.rs | 6 +++--- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/.github/workflows/ci.yaml b/.github/workflows/ci.yaml index 46b81c1..3fa6207 100644 --- a/.github/workflows/ci.yaml +++ b/.github/workflows/ci.yaml @@ -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 diff --git a/src/main.rs b/src/main.rs index 46916c3..5922705 100644 --- a/src/main.rs +++ b/src/main.rs @@ -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,