Skip to content

Commit 3de47e2

Browse files
authored
Merge pull request #7 from mjdr/warning_fix
Simple compiler warning fix
2 parents e150911 + 8a19ccc commit 3de47e2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/lib.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -140,7 +140,7 @@ impl Iface {
140140
name_buffer.extend_from_slice(ifname.as_bytes());
141141
name_buffer.extend_from_slice(&[0; 33]);
142142
let name_ptr: *mut u8 = name_buffer.as_mut_ptr();
143-
let result = unsafe { tuntap_setup(fd.as_raw_fd(), name_ptr, mode as c_int, { if packet_info { 1 } else { 0 } }) };
143+
let result = unsafe { tuntap_setup(fd.as_raw_fd(), name_ptr, mode as c_int, if packet_info { 1 } else { 0 }) };
144144
if result < 0 {
145145
return Err(Error::last_os_error());
146146
}

0 commit comments

Comments
 (0)