Skip to content

Commit

Permalink
Make Clippy happy
Browse files Browse the repository at this point in the history
  • Loading branch information
ivmarkov committed May 21, 2023
1 parent 7dab305 commit ec01eee
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions src/espnow.rs
Original file line number Diff line number Diff line change
Expand Up @@ -171,8 +171,8 @@ impl EspNow {
}

extern "C" fn recv_callback(
#[cfg(any(esp_idf_version_major = "4"))] mac_addr: *const u8,
#[cfg(not(any(esp_idf_version_major = "4")))] esp_now_info: *const esp_now_recv_info_t,
#[cfg(esp_idf_version_major = "4")] mac_addr: *const u8,
#[cfg(not(esp_idf_version_major = "4"))] esp_now_info: *const esp_now_recv_info_t,
data: *const u8,
data_len: core::ffi::c_int,
) {
Expand Down
2 changes: 1 addition & 1 deletion src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
)]
#![allow(clippy::unused_unit)] // enumset

#[cfg(any(feature = "alloc"))]
#[cfg(feature = "alloc")]
#[allow(unused_imports)]
#[macro_use]
extern crate alloc;
Expand Down

0 comments on commit ec01eee

Please sign in to comment.