Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit22469d6

Browse files
authored
Merge pull request#1029 from laptou/master
allow `BorrowToSql` for non-static `Box<dyn ToSql>`
2 parents23d2524 +066b466 commit22469d6

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

‎.github/workflows/ci.yml‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ jobs:
5555
-run:docker compose up -d
5656
-uses:sfackler/actions/rustup@master
5757
with:
58-
version:1.64.0
58+
version:1.65.0
5959
-run:echo "version=$(rustc --version)" >> $GITHUB_OUTPUT
6060
id:rust-version
6161
-uses:actions/cache@v3

‎postgres-types/src/lib.rs‎

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1184,17 +1184,17 @@ impl BorrowToSql for &dyn ToSql {
11841184
}
11851185
}
11861186

1187-
impl sealed::SealedforBox<dynToSql +Sync>{}
1187+
impl<'a> sealed::SealedforBox<dynToSql +Sync +'a>{}
11881188

1189-
implBorrowToSqlforBox<dynToSql +Sync>{
1189+
impl<'a>BorrowToSqlforBox<dynToSql +Sync +'a>{
11901190
#[inline]
11911191
fnborrow_to_sql(&self) ->&dynToSql{
11921192
self.as_ref()
11931193
}
11941194
}
11951195

1196-
impl sealed::SealedforBox<dynToSql +Sync +Send>{}
1197-
implBorrowToSqlforBox<dynToSql +Sync +Send>{
1196+
impl<'a> sealed::SealedforBox<dynToSql +Sync +Send +'a>{}
1197+
impl<'a>BorrowToSqlforBox<dynToSql +Sync +Send +'a>{
11981198
#[inline]
11991199
fnborrow_to_sql(&self) ->&dynToSql{
12001200
self.as_ref()

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp