Skip to content

Commit 2efd35f

Browse files
author
bold
committed
Remove some warnings
1 parent a0224af commit 2efd35f

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

Diff for: examples/smtp.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
use async_smtp::{EmailAddress, Envelope, SendableEmail, SmtpClient, Transport};
1+
use async_smtp::{EmailAddress, Envelope, SendableEmail, SmtpClient};
22

33
fn main() {
44
env_logger::init();

Diff for: examples/smtp_gmail.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
use async_smtp::smtp::authentication::Credentials;
2-
use async_smtp::{EmailAddress, Envelope, SendableEmail, SmtpClient, Transport};
2+
use async_smtp::{EmailAddress, Envelope, SendableEmail, SmtpClient};
33

44
fn main() {
55
async_std::task::block_on(async move {

Diff for: src/smtp/smtp_client.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -411,7 +411,7 @@ impl<'a> SmtpTransport {
411411

412412
let client = std::mem::replace(&mut self.client, InnerClient::default());
413413
let ssl_client = client.upgrade_tls_stream(tls_parameters).await?;
414-
std::mem::replace(&mut self.client, ssl_client);
414+
self.client = ssl_client;
415415

416416
debug!("connection encrypted");
417417

0 commit comments

Comments
 (0)