Skip to content

Commit 0ef5879

Browse files
committed
Remove unnecessary extra lifetime bound
1 parent 86b8572 commit 0ef5879

File tree

2 files changed

+2
-3
lines changed

2 files changed

+2
-3
lines changed

sqlx-core/src/any/options.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
use crate::any::AnyConnection;
22
use crate::connection::{ConnectOptions, LogSettings};
33
use crate::error::Error;
4-
use futures_core::future::BoxFuture;
54
use log::LevelFilter;
65
use std::str::FromStr;
76
use std::time::Duration;

sqlx-core/src/connection.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -149,9 +149,9 @@ pub trait Connection: Send {
149149

150150

151151
/// Establish a new database connection with the provided options.
152-
fn connect_with<'a>(options: &'a Self::Options) -> BoxFuture<'_, Result<Self, Error>>
152+
fn connect_with(options: &Self::Options) -> BoxFuture<'_, Result<Self, Error>>
153153
where
154-
Self: Sized + 'a,
154+
Self: Sized
155155
{
156156
Box::pin(options.connect())
157157
}

0 commit comments

Comments
 (0)