diff --git a/sqlx-core/src/any/arguments.rs b/sqlx-core/src/any/arguments.rs index 0c1a9739..ca438b02 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 d8b24d8b..61988eb2 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 47d884a7..0b90e057 100644 --- a/sqlx-core/src/query.rs +++ b/sqlx-core/src/query.rs @@ -78,7 +78,7 @@ impl<'q, DB: Database> Query<'q, DB, ::Arguments<'q>> { /// /// 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 88714ea9..f84eed8e 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<'q>> { /// 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 2c9dba59..a764ad32 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 509d7e6c..1fcc577d 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, ::Arguments<'q> /// 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 }