From a5ead464f97f3edad251559d8e4c2eff5d9b15ce Mon Sep 17 00:00:00 2001 From: EAimTY Date: Tue, 30 May 2023 01:04:15 +0900 Subject: [PATCH] make clippy happy --- tuic-client/src/connection.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tuic-client/src/connection.rs b/tuic-client/src/connection.rs index 9ee3fdd..85bf474 100644 --- a/tuic-client/src/connection.rs +++ b/tuic-client/src/connection.rs @@ -71,8 +71,8 @@ impl Endpoint { let mut tp_cfg = TransportConfig::default(); tp_cfg - .max_concurrent_bidi_streams(VarInt::from(DEFAULT_CONCURRENT_STREAMS as u32)) - .max_concurrent_uni_streams(VarInt::from(DEFAULT_CONCURRENT_STREAMS as u32)) + .max_concurrent_bidi_streams(VarInt::from(DEFAULT_CONCURRENT_STREAMS)) + .max_concurrent_uni_streams(VarInt::from(DEFAULT_CONCURRENT_STREAMS)) .send_window(cfg.send_window) .stream_receive_window(VarInt::from_u32(cfg.receive_window)) .max_idle_timeout(None);