From 2383ca48ce2a136655fa0fbe182f712ee04c95b5 Mon Sep 17 00:00:00 2001 From: ivmarkov Date: Fri, 23 Jun 2023 20:20:46 +0300 Subject: [PATCH] err is not used actually --- src/private/cstr.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/private/cstr.rs b/src/private/cstr.rs index e7fafce6628..9df5b2c1494 100644 --- a/src/private/cstr.rs +++ b/src/private/cstr.rs @@ -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(), )