diff --git a/talpid-tunnel/src/tun_provider/unix.rs b/talpid-tunnel/src/tun_provider/unix.rs index bca967bf69ea..993ebefd817c 100644 --- a/talpid-tunnel/src/tun_provider/unix.rs +++ b/talpid-tunnel/src/tun_provider/unix.rs @@ -112,6 +112,7 @@ pub struct TunnelDevice { /// A tunnel device builder. /// /// Call [`Self::create`] to create [`TunnelDevice`] from the config. +#[derive(Default)] pub struct TunnelDeviceBuilder { config: Configuration, } @@ -150,13 +151,6 @@ impl TunnelDeviceBuilder { } } -impl Default for TunnelDeviceBuilder { - fn default() -> Self { - let config = Configuration::default(); - Self { config } - } -} - impl AsRawFd for TunnelDevice { fn as_raw_fd(&self) -> RawFd { self.dev.as_raw_fd()