From 04823b0bac4dbc53f7f551dbab55f309321eb077 Mon Sep 17 00:00:00 2001 From: ssrlive <30760636+ssrlive@users.noreply.github.com> Date: Wed, 4 Dec 2024 14:51:54 +0800 Subject: [PATCH] Bump version 0.7.18 --- Cargo.toml | 2 +- src/adapter.rs | 24 ++++++------------------ 2 files changed, 7 insertions(+), 19 deletions(-) diff --git a/Cargo.toml b/Cargo.toml index b1bb0ff..b439edf 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "wintun-bindings" -version = "0.7.17" +version = "0.7.18" edition = "2021" authors = [ "ssrlive", diff --git a/src/adapter.rs b/src/adapter.rs index cdf9bda..77d2457 100644 --- a/src/adapter.rs +++ b/src/adapter.rs @@ -430,18 +430,12 @@ pub(crate) fn delete_adapter_info_from_reg(dev_name: &str) -> std::io::Result<() Ok(profile_name) => { if dev_name == profile_name { match profiles_key.delete_subkey_all(&sub_key_name) { - Ok(_) => { - log::info!("Successfully deleted Profiles sub_key: {}", sub_key_name) - } - Err(e) => { - log::warn!("Failed to delete Profiles sub_key {}: {}", sub_key_name, e) - } + Ok(_) => log::info!("Successfully deleted Profiles sub_key: {}", sub_key_name), + Err(e) => log::warn!("Failed to delete Profiles sub_key {}: {}", sub_key_name, e), } } } - Err(e) => { - log::warn!("Failed to read ProfileName for sub_key {}: {}", sub_key_name, e); - } + Err(e) => log::warn!("Failed to read ProfileName for sub_key {}: {}", sub_key_name, e), } } let unmanaged_key = hklm.open_subkey_with_flags( @@ -454,18 +448,12 @@ pub(crate) fn delete_adapter_info_from_reg(dev_name: &str) -> std::io::Result<() Ok(description) => { if dev_name == description { match unmanaged_key.delete_subkey_all(&sub_key_name) { - Ok(_) => { - log::info!("Successfully deleted Unmanaged sub_key: {}", sub_key_name) - } - Err(e) => { - log::warn!("Failed to delete Unmanaged sub_key {}: {}", sub_key_name, e) - } + Ok(_) => log::info!("Successfully deleted Unmanaged sub_key: {}", sub_key_name), + Err(e) => log::warn!("Failed to delete Unmanaged sub_key {}: {}", sub_key_name, e), } } } - Err(e) => { - log::warn!("Failed to read Description for sub_key {}: {}", sub_key_name, e); - } + Err(e) => log::warn!("Failed to read Description for sub_key {}: {}", sub_key_name, e), } } Ok(())