From 00c3cfd57fe7426e09545b6babda822da38732bd Mon Sep 17 00:00:00 2001 From: Georges Palauqui Date: Wed, 28 Aug 2024 14:44:28 +0200 Subject: [PATCH] fix ci --- .github/workflows/dependencies.yaml | 2 +- .github/workflows/ffi.yaml | 4 ++-- .github/workflows/lint.yaml | 10 +++++----- stratum-v1/src/client/mod.rs | 9 ++++++--- 4 files changed, 14 insertions(+), 11 deletions(-) diff --git a/.github/workflows/dependencies.yaml b/.github/workflows/dependencies.yaml index 25e2d23..e89681c 100644 --- a/.github/workflows/dependencies.yaml +++ b/.github/workflows/dependencies.yaml @@ -15,7 +15,7 @@ jobs: - uses: actions/checkout@v4 - uses: ./.github/actions/rust-toolchain with: - toolchain: 1.74 + toolchain: 1.75 - run: cargo install --locked cargo-audit - run: cargo audit diff --git a/.github/workflows/ffi.yaml b/.github/workflows/ffi.yaml index cb10907..73cd572 100644 --- a/.github/workflows/ffi.yaml +++ b/.github/workflows/ffi.yaml @@ -11,7 +11,7 @@ jobs: - uses: actions/checkout@v4 - uses: ./.github/actions/rust-toolchain with: - toolchain: 1.74 + toolchain: 1.75 - run: cargo install cbindgen@^0.24 - run: | cbindgen --config ffi/cbindgen.toml \ @@ -33,7 +33,7 @@ jobs: - uses: actions/checkout@v4 - uses: ./.github/actions/rust-toolchain with: - toolchain: 1.74 + toolchain: 1.75 - run: sudo apt-get install -y cmake nlohmann-json3-dev - run: | cmake -S ffi/integration/ \ diff --git a/.github/workflows/lint.yaml b/.github/workflows/lint.yaml index 1015f57..354747a 100644 --- a/.github/workflows/lint.yaml +++ b/.github/workflows/lint.yaml @@ -18,14 +18,14 @@ jobs: - uses: actions/checkout@v4 - uses: ./.github/actions/rust-toolchain with: - toolchain: 1.74 + toolchain: 1.75 - run: cargo check # The foundation-ffi crate won't compile for x86_64 targets because it # requires a nightly Rust compiler for defining a global allocator and # the exception handler. # # So, disable it for now. - - run: cargo check --no-default-features --workspace --exclude foundation-ffi + - run: cargo check --no-default-features --workspace --exclude foundation-ffi --exclude stratum-v1 - run: cargo check --all-features is-the-code-formatted: @@ -36,7 +36,7 @@ jobs: - uses: actions/checkout@v4 - uses: ./.github/actions/rust-toolchain with: - toolchain: 1.74 + toolchain: 1.75 components: rustfmt - run: cargo fmt --all -- --check @@ -48,7 +48,7 @@ jobs: - uses: actions/checkout@v4 - uses: ./.github/actions/rust-toolchain with: - toolchain: 1.74 + toolchain: 1.75 components: clippy - run: cargo clippy @@ -60,7 +60,7 @@ jobs: - uses: actions/checkout@v4 - uses: ./.github/actions/rust-toolchain with: - toolchain: 1.74 + toolchain: 1.75 - run: cargo test - run: cargo test --no-default-features --workspace --exclude foundation-ffi - run: cargo test --all-features diff --git a/stratum-v1/src/client/mod.rs b/stratum-v1/src/client/mod.rs index 76fd651..263deec 100644 --- a/stratum-v1/src/client/mod.rs +++ b/stratum-v1/src/client/mod.rs @@ -100,7 +100,7 @@ impl Result<()> { self.tx_buf[req_len] = 0x0a; - trace!("{}", &self.tx_buf[..req_len + 1]); + trace!("{:x?}", &self.tx_buf[..req_len + 1]); self.network_conn .write_all(&self.tx_buf[..req_len + 1]) .await