mirror of
https://codeberg.org/demostf/backup.git
synced 2026-06-03 09:54:18 +02:00
fix clippy
This commit is contained in:
parent
938ca06599
commit
9b0e4aff85
3 changed files with 3 additions and 3 deletions
2
.github/workflows/ci.yaml
vendored
2
.github/workflows/ci.yaml
vendored
|
|
@ -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"
|
||||
|
|
@ -39,7 +39,7 @@
|
|||
|
||||
# `nix develop`
|
||||
devShells.default = pkgs.mkShell {
|
||||
nativeBuildInputs = with pkgs; [ rustc cargo ];
|
||||
nativeBuildInputs = with pkgs; [ rustc cargo rustfmt clippy ];
|
||||
};
|
||||
}
|
||||
)
|
||||
|
|
|
|||
|
|
@ -51,7 +51,7 @@ impl Store {
|
|||
}
|
||||
|
||||
let data = &buff[0..read];
|
||||
hash.consume(&data);
|
||||
hash.consume(data);
|
||||
}
|
||||
|
||||
Ok(hash.compute().0)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue