We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
Cow::<str>::to_string
1 parent 08af3f8 commit e789a7cCopy full SHA for e789a7c
src/ifaddrs.rs
@@ -93,7 +93,7 @@ impl InterfaceAddress {
93
let netmask =
94
unsafe { SockaddrStorage::from_raw(info.ifa_netmask, None) };
95
let mut addr = InterfaceAddress {
96
- interface_name: ifname.to_string_lossy().to_string(),
+ interface_name: ifname.to_string_lossy().into_owned(),
97
flags: InterfaceFlags::from_bits_truncate(
98
info.ifa_flags as IflagsType,
99
),
0 commit comments