Skip to content

Commit

Permalink
err is not used actually
Browse files Browse the repository at this point in the history
  • Loading branch information
ivmarkov authored Jun 23, 2023
1 parent a5c838f commit 2383ca4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/private/cstr.rs
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ impl Default for RawCstrs {
}

#[cfg(feature = "alloc")]
pub fn nul_to_invalid_arg(err: alloc::ffi::NulError) -> esp_idf_sys::EspError {
pub fn nul_to_invalid_arg(_err: alloc::ffi::NulError) -> esp_idf_sys::EspError {
esp_idf_sys::EspError::from_non_zero(
core::num::NonZeroI32::new(esp_idf_sys::ESP_ERR_INVALID_ARG).unwrap(),
)
Expand Down

0 comments on commit 2383ca4

Please sign in to comment.