aboutsummaryrefslogtreecommitdiff
path: root/apps/src/bin/quiche-server.rs
diff options
context:
space:
mode:
Diffstat (limited to 'apps/src/bin/quiche-server.rs')
-rw-r--r--apps/src/bin/quiche-server.rs8
1 files changed, 4 insertions, 4 deletions
diff --git a/apps/src/bin/quiche-server.rs b/apps/src/bin/quiche-server.rs
index f5d56910..3d261c1c 100644
--- a/apps/src/bin/quiche-server.rs
+++ b/apps/src/bin/quiche-server.rs
@@ -617,7 +617,7 @@ fn main() {
);
for id in c.conn.source_ids() {
- let id_owned = id.clone().into_owned();
+ let id_owned = id.clone();
clients_ids.remove(&id_owned);
}
}
@@ -658,9 +658,9 @@ fn mint_token(hdr: &quiche::Header, src: &net::SocketAddr) -> Vec<u8> {
///
/// Note that this function is only an example and doesn't do any cryptographic
/// authenticate of the token. *It should not be used in production system*.
-fn validate_token<'a>(
- src: &net::SocketAddr, token: &'a [u8],
-) -> Option<quiche::ConnectionId<'a>> {
+fn validate_token(
+ src: &net::SocketAddr, token: &[u8],
+) -> Option<quiche::ConnectionId> {
if token.len() < 6 {
return None;
}