Merge pull request #1029 from laptou/master
allow `BorrowToSql` for non-static `Box<dyn ToSql>`
This commit is contained in:
commit
22469d6b38
2
.github/workflows/ci.yml
vendored
2
.github/workflows/ci.yml
vendored
@ -55,7 +55,7 @@ jobs:
|
|||||||
- run: docker compose up -d
|
- run: docker compose up -d
|
||||||
- uses: sfackler/actions/rustup@master
|
- uses: sfackler/actions/rustup@master
|
||||||
with:
|
with:
|
||||||
version: 1.64.0
|
version: 1.65.0
|
||||||
- run: echo "version=$(rustc --version)" >> $GITHUB_OUTPUT
|
- run: echo "version=$(rustc --version)" >> $GITHUB_OUTPUT
|
||||||
id: rust-version
|
id: rust-version
|
||||||
- uses: actions/cache@v3
|
- uses: actions/cache@v3
|
||||||
|
@ -1184,17 +1184,17 @@ impl BorrowToSql for &dyn ToSql {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
impl sealed::Sealed for Box<dyn ToSql + Sync> {}
|
impl<'a> sealed::Sealed for Box<dyn ToSql + Sync + 'a> {}
|
||||||
|
|
||||||
impl BorrowToSql for Box<dyn ToSql + Sync> {
|
impl<'a> BorrowToSql for Box<dyn ToSql + Sync + 'a> {
|
||||||
#[inline]
|
#[inline]
|
||||||
fn borrow_to_sql(&self) -> &dyn ToSql {
|
fn borrow_to_sql(&self) -> &dyn ToSql {
|
||||||
self.as_ref()
|
self.as_ref()
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
impl sealed::Sealed for Box<dyn ToSql + Sync + Send> {}
|
impl<'a> sealed::Sealed for Box<dyn ToSql + Sync + Send + 'a> {}
|
||||||
impl BorrowToSql for Box<dyn ToSql + Sync + Send> {
|
impl<'a> BorrowToSql for Box<dyn ToSql + Sync + Send + 'a> {
|
||||||
#[inline]
|
#[inline]
|
||||||
fn borrow_to_sql(&self) -> &dyn ToSql {
|
fn borrow_to_sql(&self) -> &dyn ToSql {
|
||||||
self.as_ref()
|
self.as_ref()
|
||||||
|
Loading…
Reference in New Issue
Block a user