Skip to content

Commit b863377

Browse files
authored
Update lib.rs
1 parent 8c9fccb commit b863377

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

src/lib.rs

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -227,10 +227,10 @@ macro_rules! mac_impl {
227227
}
228228
}
229229

230-
impl TryFrom<&[core::ffi::c_char]> for $nm {
230+
impl TryFrom<&[i8]> for $nm {
231231
type Error = ParseError;
232232

233-
fn try_from(value: &[core::ffi::c_char]) -> Result<Self, Self::Error> {
233+
fn try_from(value: &[i8]) -> Result<Self, Self::Error> {
234234
Self::try_from(unsafe { &*(value as *const _ as *const [u8]) })
235235
}
236236
}
@@ -472,3 +472,4 @@ mod test {
472472
assert!(!addr.is_multicast());
473473
}
474474
}
475+

0 commit comments

Comments
 (0)