Skip to content

Commit

Permalink
clippy
Browse files Browse the repository at this point in the history
  • Loading branch information
taks committed Jul 22, 2024
1 parent 080cf47 commit e23be67
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 1 addition & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 2 additions & 0 deletions src/ble_error.rs
Original file line number Diff line number Diff line change
Expand Up @@ -86,13 +86,15 @@ 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 }
};
}

/// hardware errors (BLE_HS_ERR_HW_BASE : 0x600)
#[allow(unused)]
macro_rules! HW_ERR {
($x:expr) => {
const { sys::BLE_HS_ERR_HW_BASE + $x }
Expand Down

0 comments on commit e23be67

Please sign in to comment.