Skip to content

Commit

Permalink
undo
Browse files Browse the repository at this point in the history
  • Loading branch information
ibc committed Jan 2, 2024
1 parent 722fe2e commit b543631
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions rust/src/data_structures.rs
Original file line number Diff line number Diff line change
Expand Up @@ -108,8 +108,8 @@ pub struct SocketFlags {
impl SocketFlags {
pub(crate) fn to_fbs(self) -> transport::SocketFlags {
transport::SocketFlags {
ipv6_only: self.ipv6_only.unwrap_or_else(false),
udp_reuse_port: self.udp_reuse_port.unwrap_or_else(Some(false)),
ipv6_only: self.ipv6_only,
udp_reuse_port: self.udp_reuse_port,
}
}
}
Expand Down

0 comments on commit b543631

Please sign in to comment.