Skip to content

Commit

Permalink
Update to Rust edition 2021 (snapview#446)
Browse files Browse the repository at this point in the history
  • Loading branch information
nickelc authored Sep 14, 2024
1 parent 2bc5387 commit 7d338cb
Show file tree
Hide file tree
Showing 4 changed files with 2 additions and 9 deletions.
2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ homepage = "https://github.com/snapview/tungstenite-rs"
documentation = "https://docs.rs/tungstenite/0.24.0"
repository = "https://github.com/snapview/tungstenite-rs"
version = "0.24.0"
edition = "2018"
edition = "2021"
rust-version = "1.63"
include = ["benches/**/*", "src/**/*", "examples/**/*", "LICENSE-*", "README.md", "CHANGELOG.md"]

Expand Down
1 change: 0 additions & 1 deletion src/client.rs
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
//! Methods to connect to a WebSocket as a client.

use std::{
convert::TryFrom,
io::{Read, Write},
net::{SocketAddr, TcpStream, ToSocketAddrs},
result::Result as StdResult,
Expand Down
7 changes: 1 addition & 6 deletions src/protocol/message.rs
Original file line number Diff line number Diff line change
@@ -1,9 +1,4 @@
use std::{
convert::{AsRef, From, Into, TryFrom},
fmt,
result::Result as StdResult,
str,
};
use std::{fmt, result::Result as StdResult, str};

use super::frame::{CloseFrame, Frame};
use crate::error::{CapacityError, Error, Result};
Expand Down
1 change: 0 additions & 1 deletion src/tls.rs
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,6 @@ mod encryption {
use rustls_pki_types::ServerName;

use std::{
convert::TryFrom,
io::{Read, Write},
sync::Arc,
};
Expand Down

0 comments on commit 7d338cb

Please sign in to comment.