diff --git a/sqlx-core/src/any/arguments.rs b/sqlx-core/src/any/arguments.rs index 0c1a973905..ca438b0286 100644 --- a/sqlx-core/src/any/arguments.rs +++ b/sqlx-core/src/any/arguments.rs @@ -18,7 +18,7 @@ impl<'q> Arguments<'q> for AnyArguments<'q> { fn add(&mut self, value: T) where - T: 'q + Send + Encode<'q, Self::Database> + Type, + T: 'q + Encode<'q, Self::Database> + Type, { let _ = value.encode(&mut self.values); } diff --git a/sqlx-core/src/arguments.rs b/sqlx-core/src/arguments.rs index c952d7df9f..f2b7f05751 100644 --- a/sqlx-core/src/arguments.rs +++ b/sqlx-core/src/arguments.rs @@ -16,7 +16,7 @@ pub trait Arguments<'q>: Send + Sized + Default { /// Add the value to the end of the arguments. fn add(&mut self, value: T) where - T: 'q + Send + Encode<'q, Self::Database> + Type; + T: 'q + Encode<'q, Self::Database> + Type; fn format_placeholder(&self, writer: &mut W) -> fmt::Result { writer.write_str("?") diff --git a/sqlx-core/src/query.rs b/sqlx-core/src/query.rs index 2d7a1c9b15..5b40c50db7 100644 --- a/sqlx-core/src/query.rs +++ b/sqlx-core/src/query.rs @@ -76,7 +76,7 @@ impl<'q, DB: Database> Query<'q, DB, >::Arguments> { /// /// There is no validation that the value is of the type expected by the query. Most SQL /// flavors will perform type coercion (Postgres will return a database error). - pub fn bind + Type>(mut self, value: T) -> Self { + pub fn bind + Type>(mut self, value: T) -> Self { if let Some(arguments) = &mut self.arguments { arguments.add(value); } diff --git a/sqlx-core/src/query_as.rs b/sqlx-core/src/query_as.rs index 43a611cf65..9f7f39b6ac 100644 --- a/sqlx-core/src/query_as.rs +++ b/sqlx-core/src/query_as.rs @@ -51,7 +51,7 @@ impl<'q, DB: Database, O> QueryAs<'q, DB, O, >::Arguments /// Bind a value for use with this SQL query. /// /// See [`Query::bind`](Query::bind). - pub fn bind + Type>(mut self, value: T) -> Self { + pub fn bind + Type>(mut self, value: T) -> Self { self.inner = self.inner.bind(value); self } diff --git a/sqlx-core/src/query_builder.rs b/sqlx-core/src/query_builder.rs index 75c2bd995c..222f2bc504 100644 --- a/sqlx-core/src/query_builder.rs +++ b/sqlx-core/src/query_builder.rs @@ -147,7 +147,7 @@ where /// [postgres-limit-issue]: https://github.com/launchbadge/sqlx/issues/671#issuecomment-687043510 pub fn push_bind(&mut self, value: T) -> &mut Self where - T: 'args + Encode<'args, DB> + Send + Type, + T: 'args + Encode<'args, DB> + Type, { self.sanity_check(); @@ -569,7 +569,7 @@ where /// See [`QueryBuilder::push_bind()`] for details. pub fn push_bind(&mut self, value: T) -> &mut Self where - T: 'args + Encode<'args, DB> + Send + Type, + T: 'args + Encode<'args, DB> + Type, { if self.push_separator { self.query_builder.push(&self.separator); @@ -587,7 +587,7 @@ where /// Simply calls [`QueryBuilder::push_bind()`] directly. pub fn push_bind_unseparated(&mut self, value: T) -> &mut Self where - T: 'args + Encode<'args, DB> + Send + Type, + T: 'args + Encode<'args, DB> + Type, { self.query_builder.push_bind(value); self diff --git a/sqlx-core/src/query_scalar.rs b/sqlx-core/src/query_scalar.rs index 0ef8cbde30..adfa94f3e5 100644 --- a/sqlx-core/src/query_scalar.rs +++ b/sqlx-core/src/query_scalar.rs @@ -48,7 +48,7 @@ impl<'q, DB: Database, O> QueryScalar<'q, DB, O, >::Argum /// Bind a value for use with this SQL query. /// /// See [`Query::bind`](crate::query::Query::bind). - pub fn bind + Type>(mut self, value: T) -> Self { + pub fn bind + Type>(mut self, value: T) -> Self { self.inner = self.inner.bind(value); self }