fix: clippy byte_char_slices lint, Docker java artifact path
This commit is contained in:
parent
997da7fbd3
commit
35d20e97db
3 changed files with 1 additions and 3 deletions
|
|
@ -5,6 +5,5 @@ target/
|
||||||
*.md
|
*.md
|
||||||
docs/
|
docs/
|
||||||
crates/*/target/
|
crates/*/target/
|
||||||
plugins/*/build/
|
|
||||||
plugins/*/.gradle/
|
plugins/*/.gradle/
|
||||||
plugins/.gradle/
|
plugins/.gradle/
|
||||||
|
|
|
||||||
1
.github/workflows/ci.yml
vendored
1
.github/workflows/ci.yml
vendored
|
|
@ -91,7 +91,6 @@ jobs:
|
||||||
- uses: actions/download-artifact@v4
|
- uses: actions/download-artifact@v4
|
||||||
with:
|
with:
|
||||||
name: rampart-java-plugins
|
name: rampart-java-plugins
|
||||||
path: plugins/
|
|
||||||
- name: Build edge
|
- name: Build edge
|
||||||
uses: docker/build-push-action@v6
|
uses: docker/build-push-action@v6
|
||||||
with:
|
with:
|
||||||
|
|
|
||||||
|
|
@ -2,7 +2,7 @@ use crate::pow::challenge::Challenge;
|
||||||
use sha2::{Digest, Sha256};
|
use sha2::{Digest, Sha256};
|
||||||
use subtle::ConstantTimeEq;
|
use subtle::ConstantTimeEq;
|
||||||
|
|
||||||
const ALLOWED: [u8; 4] = [b'0', b'1', b'2', b'3'];
|
const ALLOWED: [u8; 4] = *b"0123";
|
||||||
|
|
||||||
pub fn verify(challenge: &mut Challenge, nonce: &str) -> bool {
|
pub fn verify(challenge: &mut Challenge, nonce: &str) -> bool {
|
||||||
if challenge.used {
|
if challenge.used {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue