diff options
author | HimbeerserverDE <himbeerserverde@gmail.com> | 2023-03-20 18:34:56 +0100 |
---|---|---|
committer | HimbeerserverDE <himbeerserverde@gmail.com> | 2023-03-20 18:34:56 +0100 |
commit | 272264750a883eee2be01076ec87b8f39593cc68 (patch) | |
tree | b66a41e6072fe6463ab2d4e35e10fcb511e57e8c | |
parent | 66721d6ab022635a88e72cd17a5e389b5d6944a8 (diff) |
don't panic when link closes
-rw-r--r-- | src/main.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/main.rs b/src/main.rs index 3d07bf6..7db2fa0 100644 --- a/src/main.rs +++ b/src/main.rs @@ -99,8 +99,8 @@ fn main() -> Result<()> { Err(e) => panic!("write_config error: {}", e), }); - // clone tx so that ppp2tun doesn't panic when ppp link closes + // clone so that ppp2tun doesn't panic when ppp link closes #[allow(clippy::redundant_clone)] - clt.run(tx.clone(), ipchange_tx)?; + clt.run(tx.clone(), ipchange_tx.clone())?; Ok(()) } |