mirror of
https://github.com/EasyTier/EasyTier.git
synced 2026-10-15 00:56:15 -08:00
perf: simplify method signatures and reduce clone across multiple files (#1663)
This commit is contained in:
1 parent
2bc51daa98
commit
fe4dff5df0
33 files changed
+62
-81
No files matched your search
@@ -366,7 +366,7 @@ impl VirtualNic {
|
||||
Ok(())
|
||||
}
|
||||
|
||||
async fn create_tun(&mut self) -> Result<tun::platform::Device, Error> {
|
||||
async fn create_tun(&self) -> Result<tun::platform::Device, Error> {
|
||||
let mut config = Configuration::default();
|
||||
config.layer(Layer::L3);
|
||||
|
||||
|
||||
Reference in new issue
Block a user