Skip to content

Commit a2a2baf

Browse files
committed
up
1 parent d7745f1 commit a2a2baf

File tree

2 files changed

+3
-0
lines changed

2 files changed

+3
-0
lines changed

clash-lib/src/common/defer.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,9 @@
11
// https://stackoverflow.com/a/29963675/1109167
2+
#[allow(dead_code)]
23
pub struct ScopeCall<F: FnOnce()> {
34
pub c: Option<F>,
45
}
6+
57
impl<F: FnOnce()> Drop for ScopeCall<F> {
68
fn drop(&mut self) {
79
self.c.take().unwrap()()

clash-lib/src/config/internal/proxy.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -281,6 +281,7 @@ pub struct OutboundVless {
281281
pub grpc_opts: Option<GrpcOpt>,
282282
}
283283

284+
#[cfg(feature = "wireguard")]
284285
#[derive(serde::Serialize, serde::Deserialize, Debug, Default, Clone)]
285286
#[serde(rename_all = "kebab-case")]
286287
pub struct OutboundWireguard {

0 commit comments

Comments
 (0)