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)