Skip to content

Commit

Permalink
Make TunProvider constructor const
Browse files Browse the repository at this point in the history
  • Loading branch information
dlon committed Aug 13, 2024
1 parent 2b1ab85 commit 3491761
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion talpid-tunnel/src/tun_provider/unix.rs
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ pub struct UnixTunProvider {
}

impl UnixTunProvider {
pub fn new(config: TunConfig) -> Self {
pub const fn new(config: TunConfig) -> Self {
UnixTunProvider { config }
}

Expand Down

0 comments on commit 3491761

Please sign in to comment.