fix clippy

This commit is contained in:
Robin Appelman 2023-06-01 20:14:14 +02:00
commit 9b0e4aff85
3 changed files with 3 additions and 3 deletions

View file

@ -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"

View file

@ -39,7 +39,7 @@
# `nix develop`
devShells.default = pkgs.mkShell {
nativeBuildInputs = with pkgs; [ rustc cargo ];
nativeBuildInputs = with pkgs; [ rustc cargo rustfmt clippy ];
};
}
)

View file

@ -51,7 +51,7 @@ impl Store {
}
let data = &buff[0..read];
hash.consume(&data);
hash.consume(data);
}
Ok(hash.compute().0)