Skip to content

Commit

Permalink
[eclipse-iceoryx#264] Fix clippy warnings for aarch64
Browse files Browse the repository at this point in the history
  • Loading branch information
elfenpiff committed Sep 9, 2024
1 parent 62e082b commit 7113938
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion iceoryx2-bb/container/src/semantic_string.rs
Original file line number Diff line number Diff line change
Expand Up @@ -153,7 +153,7 @@ pub trait SemanticString<const CAPACITY: usize>:
///
unsafe fn from_c_str(ptr: *const std::ffi::c_char) -> Result<Self, SemanticStringError> {
Self::new(std::slice::from_raw_parts(
ptr as *const u8,
ptr.cast(),
strnlen(ptr, CAPACITY + 1),
))
}
Expand Down

0 comments on commit 7113938

Please sign in to comment.