From 0630fc95f50539f82fd46db67ea5db97f2d54ece Mon Sep 17 00:00:00 2001 From: Dirkjan Ochtman Date: Mon, 12 Oct 2020 11:20:09 +0200 Subject: [PATCH] Tweak formatting --- quinn-proto/src/endpoint.rs | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/quinn-proto/src/endpoint.rs b/quinn-proto/src/endpoint.rs index b218842ba..22b9c3816 100644 --- a/quinn-proto/src/endpoint.rs +++ b/quinn-proto/src/endpoint.rs @@ -557,11 +557,13 @@ where random_bytes: &random_bytes, } .encode(&*server_config.token_key, &remote, &temp_loc_cid); - let mut buf = Vec::new(); + let header = Header::Retry { src_cid: temp_loc_cid, dst_cid: src_cid, }; + + let mut buf = Vec::new(); let encode = header.encode(&mut buf); buf.put_slice(&token); buf.extend_from_slice(&S::retry_tag(&dst_cid, &buf));