From e23be67e685f84dfbb0bca8bb240cf2dfcdff45f Mon Sep 17 00:00:00 2001 From: taks <857tn859@gmail.com> Date: Mon, 22 Jul 2024 10:10:03 +0900 Subject: [PATCH] clippy --- .github/workflows/ci.yml | 2 +- src/ble_error.rs | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 1a36c79..3019d33 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -61,7 +61,7 @@ jobs: - name: Fmt check run: cargo fmt --check - name: Clippy check - run: cargo clippy --target ${{ matrix.target }} -- -D clippy::all + run: cargo clippy --target ${{ matrix.target }} -- -D clippy::all -D warnings - name: Build run: cargo build --target ${{ matrix.target }} - name: Build | no_std diff --git a/src/ble_error.rs b/src/ble_error.rs index 5abcd28..d6590fd 100644 --- a/src/ble_error.rs +++ b/src/ble_error.rs @@ -86,6 +86,7 @@ macro_rules! SM_US_ERR { } /// Error base for remote (peer) Security Manager errors (BLE_HS_ERR_SM_PEER_BASE : 0x500) +#[allow(unused)] macro_rules! SM_PEER_ERR { ($x:expr) => { const { sys::BLE_HS_ERR_SM_PEER_BASE + $x } @@ -93,6 +94,7 @@ macro_rules! SM_PEER_ERR { } /// hardware errors (BLE_HS_ERR_HW_BASE : 0x600) +#[allow(unused)] macro_rules! HW_ERR { ($x:expr) => { const { sys::BLE_HS_ERR_HW_BASE + $x }