Skip to content

Commit aa785df

Browse files
author
“ramfox”
committed
fix: add back cfg that got lost in rebase
1 parent 5975600 commit aa785df

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/lib.rs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1695,7 +1695,10 @@ impl<M> ClientInner<M> {
16951695
async fn zero_rtt_accepted(&self) -> bool {
16961696
match self {
16971697
ClientInner::Local(_sender) => true,
1698+
#[cfg(feature = "rpc")]
16981699
ClientInner::Remote(remote_connection) => remote_connection.zero_rtt_accepted().await,
1700+
#[cfg(not(feature = "rpc"))]
1701+
Self::Remote(_) => unreachable!(),
16991702
}
17001703
}
17011704
}

0 commit comments

Comments
 (0)