Skip to content

Commit

Permalink
allow(dead_code) on cstring
Browse files Browse the repository at this point in the history
  • Loading branch information
jrouaix committed Dec 18, 2024
1 parent 2632e51 commit 619cf61
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/util.rs
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,7 @@ pub(crate) fn extract_string_size(data: &[u8], message_size: u64) -> nom::IResul

const NULL_BYTE: u8 = 0;

#[allow(dead_code)]
/// Extract an UTF8 string from a byte array, stops at NULL_BYTE or END OF STRING
/// Consumes the end byte
pub(crate) fn cstring(input: &[u8]) -> nom::IResult<&[u8], String> {
Expand Down

0 comments on commit 619cf61

Please sign in to comment.