From ba75f267f1d22df2fc6e928720dbf381eaa85490 Mon Sep 17 00:00:00 2001 From: dignifiedquire Date: Mon, 2 Dec 2024 20:10:50 +0100 Subject: [PATCH] ci: fixup clippy and semver --- .github/workflows/ci.yaml | 4 ++-- src/core.rs | 1 + 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/.github/workflows/ci.yaml b/.github/workflows/ci.yaml index d0aada0..11aef7b 100644 --- a/.github/workflows/ci.yaml +++ b/.github/workflows/ci.yaml @@ -173,7 +173,7 @@ jobs: # uses: obi1kenobi/cargo-semver-checks-action@v2 uses: n0-computer/cargo-semver-checks-action@feat-baseline with: - package: iroh-gossip + package: iroh-metrics baseline-rev: ${{ env.HEAD_COMMIT_SHA }} use-cache: false @@ -276,4 +276,4 @@ jobs: steps: - uses: actions/checkout@v4 - run: pip install --user codespell[toml] - - run: codespell --ignore-words-list=ans,atmost,crate,inout,ratatui,ser,stayin,swarmin,worl --skip=CHANGELOG.md \ No newline at end of file + - run: codespell --ignore-words-list=ans,atmost,crate,inout,ratatui,ser,stayin,swarmin,worl --skip=CHANGELOG.md diff --git a/src/core.rs b/src/core.rs index 21cc137..f3425c5 100644 --- a/src/core.rs +++ b/src/core.rs @@ -144,6 +144,7 @@ impl Core { } /// Trieds to init the metrics. + #[cfg_attr(not(feature = "metrics"), allow(clippy::let_unit_value))] pub fn try_init(f: F) -> std::io::Result<()> { let mut registry = Registry::default(); let mut metrics_map = ErasedSyncSet::new();