From 716f7aeaed02798161afcaf6bd823b707ca1b64c Mon Sep 17 00:00:00 2001 From: Oussama Teffahi Date: Fri, 25 Oct 2024 18:55:35 +0200 Subject: [PATCH] Fix formatting --- io/zenoh-link-commons/src/tls.rs | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/io/zenoh-link-commons/src/tls.rs b/io/zenoh-link-commons/src/tls.rs index 0e3a19910..61b7253f6 100644 --- a/io/zenoh-link-commons/src/tls.rs +++ b/io/zenoh-link-commons/src/tls.rs @@ -1,5 +1,6 @@ -use crate::LinkUnicastTrait; use alloc::vec::Vec; +use std::{collections::BTreeMap, sync::Weak}; + use rustls::{ client::{ danger::{ServerCertVerified, ServerCertVerifier}, @@ -10,13 +11,14 @@ use rustls::{ server::ParsedCertificate, RootCertStore, }; -use std::{collections::BTreeMap, sync::Weak}; use time::OffsetDateTime; use tokio::task::JoinHandle; use tokio_util::sync::CancellationToken; use webpki::ALL_VERIFICATION_ALGS; use zenoh_protocol::core::Locator; +use crate::LinkUnicastTrait; + impl ServerCertVerifier for WebPkiVerifierAnyServerName { /// Will verify the certificate is valid in the following ways: /// - Signed by a trusted `RootCertStore` CA