You are an expert in writing code in many different languages. Your goal is to perform code completion for the following code, keeping in mind the rest of the code and the file meta data.
    Metadata details:
    filename: hyper.rs
    path of file: ./repos/HarTex/rust-utilities/hartex-discord-utils/src
    
    the code of the file until where you have to start completion: /*
 * SPDX-License-Identifier: AGPL-3.0-only
 *
 * This file is part of HarTex.
 *
 * HarTex
 * Copyright (c) 2021-2024 Ha
    
pub async fn tls_stream() -> miette::Result<TlsStream<TcpStream>> {
    let mut root_cert_store = RootCertStore::empty();
    root_cert_store.extend(TLS_SERVER_ROOTS.iter().cloned());
    let tls_config = Arc::new(
        ClientConfig::builder()
            .with_root_certificates(root_cert_store)
            .with_no_client_auth(),
    );

    let connector = TlsConnector::from(tls_config);
    let dns_name = ServerName::try_from("discord.com").into_diagnostic()?;

    let stream = TcpStream::connect("discord.com:443")
        .await
        .into_diagnostic()?;

    connector.connect(dns_name, stream).await.into_diagnostic()
}