Skip to content

Commit

Permalink
chore(lib): remove importing prelude trait in 2021 edition (#3546)
Browse files Browse the repository at this point in the history
  • Loading branch information
tottoto committed Jan 28, 2024
1 parent b114244 commit 90eb95f
Show file tree
Hide file tree
Showing 4 changed files with 0 additions and 6 deletions.
2 changes: 0 additions & 2 deletions src/ext/h1_reason_phrase.rs
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
use std::convert::TryFrom;

use bytes::Bytes;

/// A reason phrase in an HTTP/1 response.
Expand Down
2 changes: 0 additions & 2 deletions src/proto/h1/encode.rs
Original file line number Diff line number Diff line change
Expand Up @@ -436,8 +436,6 @@ impl std::error::Error for NotEof {}

#[cfg(test)]
mod tests {
use std::iter::FromIterator;

use bytes::BufMut;
use http::{
header::{
Expand Down
1 change: 0 additions & 1 deletion tests/client.rs
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@ use std::convert::Infallible;
use std::fmt;
use std::future::Future;
use std::io::{Read, Write};
use std::iter::FromIterator;
use std::net::{SocketAddr, TcpListener};
use std::pin::Pin;
use std::thread;
Expand Down
1 change: 0 additions & 1 deletion tests/server.rs
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
#![deny(warnings)]
#![deny(rust_2018_idioms)]

use std::convert::TryInto;
use std::future::Future;
use std::io::{self, Read, Write};
use std::net::TcpListener as StdTcpListener;
Expand Down

0 comments on commit 90eb95f

Please sign in to comment.