From 9b0e4aff8591fd8612e25744b33d6bd7fcbd7c5e Mon Sep 17 00:00:00 2001 From: Robin Appelman Date: Thu, 1 Jun 2023 20:14:14 +0200 Subject: [PATCH] fix clippy --- .github/workflows/ci.yaml | 2 +- flake.nix | 2 +- src/store.rs | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/workflows/ci.yaml b/.github/workflows/ci.yaml index e84f7d2..8e685df 100644 --- a/.github/workflows/ci.yaml +++ b/.github/workflows/ci.yaml @@ -77,6 +77,6 @@ jobs: authToken: '${{ secrets.ATTIC_TOKEN }}' - run: nix build .#dockerImage - name: Push image - if: github.ref == 'refs/heads/main' + if: github.ref == 'refs/heads/master' run: | skopeo copy --dest-creds="${{ secrets.DOCKERHUB_USERNAME }}:${{ secrets.DOCKERHUB_TOKEN }}" "docker-archive:$(nix build .#dockerImage --print-out-paths)" "docker://demostf/backup" \ No newline at end of file diff --git a/flake.nix b/flake.nix index 2ffa10f..0cfacc6 100644 --- a/flake.nix +++ b/flake.nix @@ -39,7 +39,7 @@ # `nix develop` devShells.default = pkgs.mkShell { - nativeBuildInputs = with pkgs; [ rustc cargo ]; + nativeBuildInputs = with pkgs; [ rustc cargo rustfmt clippy ]; }; } ) diff --git a/src/store.rs b/src/store.rs index ebc646a..63f2f9d 100644 --- a/src/store.rs +++ b/src/store.rs @@ -51,7 +51,7 @@ impl Store { } let data = &buff[0..read]; - hash.consume(&data); + hash.consume(data); } Ok(hash.compute().0)