From 1f68bd331e7279b5a6f69bc063907b4f6e1c4b29 Mon Sep 17 00:00:00 2001 From: Georges Palauqui Date: Wed, 28 Aug 2024 14:52:53 +0200 Subject: [PATCH] fix ci --- .github/workflows/lint.yaml | 9 ++++++--- stratum-v1/src/client/mod.rs | 9 +++------ 2 files changed, 9 insertions(+), 9 deletions(-) diff --git a/.github/workflows/lint.yaml b/.github/workflows/lint.yaml index 354747a..8933d2f 100644 --- a/.github/workflows/lint.yaml +++ b/.github/workflows/lint.yaml @@ -24,9 +24,12 @@ jobs: # 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 --exclude stratum-v1 - - run: cargo check --all-features + # The stratum-v1 crate won't compile with all features enabled because + # if has 2 mutualy exclusive features = defmt and log. + # + # So, disable them for now. + - run: cargo check --no-default-features --workspace --exclude foundation-ffi + - run: cargo check --all-features --exclude stratum-v1 is-the-code-formatted: name: Is the code formatted? diff --git a/stratum-v1/src/client/mod.rs b/stratum-v1/src/client/mod.rs index 263deec..43bd163 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!("{:x?}", &self.tx_buf[..req_len + 1]); + trace!("{:?}", &self.tx_buf[..req_len + 1]); self.network_conn .write_all(&self.tx_buf[..req_len + 1]) .await