diff --git a/wgctrl-rs/src/device.rs b/wgctrl-rs/src/device.rs index 5a9db5e..1f53611 100644 --- a/wgctrl-rs/src/device.rs +++ b/wgctrl-rs/src/device.rs @@ -139,7 +139,7 @@ impl FromStr for InterfaceName { return Err(InvalidInterfaceName::InvalidChars); } - *out = *b as i8; + *out = *b as c_char; } Ok(Self(buf))