Skip to content
This repository has been archived by the owner on Jan 6, 2024. It is now read-only.

Commit

Permalink
Migrate to Rust 2021
Browse files Browse the repository at this point in the history
  • Loading branch information
taiki-e committed Oct 8, 2023
1 parent 7c66d84 commit 1a18c4b
Show file tree
Hide file tree
Showing 8 changed files with 5 additions and 9 deletions.
2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ documentation = "https://docs.rs/async-rustls"
readme = "README.md"
description = "Asynchronous TLS/SSL streams using Rustls."
categories = ["asynchronous", "cryptography", "network-programming"]
edition = "2018"
edition = "2021"

[workspace]
resolver = "2"
Expand Down
3 changes: 2 additions & 1 deletion examples/client/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,8 @@
name = "client"
version = "0.1.0"
authors = ["quininer <quininer@live.com>", "John Nunley <jtnunley01@gmail.com>"]
edition = "2018"
edition = "2021"
publish = false

[dependencies]
argh = "0.1"
Expand Down
1 change: 0 additions & 1 deletion examples/client/src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@ use smol::io::{copy, split, AsyncWriteExt};
use smol::net::TcpStream;
use smol::prelude::*;
use smol::Unblock;
use std::convert::TryFrom;
use std::fs::File;
use std::io;
use std::io::BufReader;
Expand Down
3 changes: 2 additions & 1 deletion examples/server/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,8 @@
name = "server"
version = "0.1.0"
authors = ["quininer <quininer@live.com>", "John Nunley <jtnunley01@gmail.com>"]
edition = "2018"
edition = "2021"
publish = false

[dependencies]
argh = "0.1"
Expand Down
2 changes: 0 additions & 2 deletions src/common/test_stream.rs
Original file line number Diff line number Diff line change
Expand Up @@ -256,8 +256,6 @@ fn stream_eof() -> io::Result<()> {
}

fn make_pair() -> (ServerConnection, ClientConnection) {
use std::convert::TryFrom;

let (sconfig, cconfig) = utils::make_configs();
let server = ServerConnection::new(sconfig).unwrap();

Expand Down
1 change: 0 additions & 1 deletion tests/badssl.rs
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@ use async_rustls::{
};
use smol::io::{AsyncReadExt, AsyncWriteExt};
use smol::net::TcpStream;
use std::convert::TryFrom;
use std::io;
use std::net::ToSocketAddrs;
use std::sync::Arc;
Expand Down
1 change: 0 additions & 1 deletion tests/early-data.rs
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@ use smol::net::TcpStream;
use smol::prelude::*;
use smol::Timer;
use smol::{future, future::Future};
use std::convert::TryFrom;
use std::io::{self, BufRead, BufReader, Cursor};
use std::net::SocketAddr;
use std::pin::Pin;
Expand Down
1 change: 0 additions & 1 deletion tests/test.rs
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@ use rustls_pemfile::{certs, rsa_private_keys};
use smol::io::{copy, split, AssertAsync, AsyncReadExt, AsyncWriteExt};
use smol::net::{TcpListener, TcpStream};
use smol::prelude::*;
use std::convert::TryFrom;
use std::io::{BufReader, Cursor, ErrorKind};
use std::net::SocketAddr;
use std::sync::mpsc::channel;
Expand Down

0 comments on commit 1a18c4b

Please sign in to comment.