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

Commitba1b4cf

Browse files
authored
Merge pull request#1104 from njaard/master
add #[track_caller] to the Row::get() functions
2 parents8989fc9 +25314a9 commitba1b4cf

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

‎.github/workflows/ci.yml‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,7 @@ jobs:
8282
-run:docker compose up -d
8383
-uses:sfackler/actions/rustup@master
8484
with:
85-
version:1.71.0
85+
version:1.74.0
8686
-run:echo "version=$(rustc --version)" >> $GITHUB_OUTPUT
8787
id:rust-version
8888
-uses:actions/cache@v3

‎tokio-postgres/src/row.rs‎

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -141,6 +141,7 @@ impl Row {
141141
/// # Panics
142142
///
143143
/// Panics if the index is out of bounds or if the value cannot be converted to the specified type.
144+
#[track_caller]
144145
pubfnget<'a,I,T>(&'aself,idx:I) ->T
145146
where
146147
I:RowIndex + fmt::Display,
@@ -239,6 +240,7 @@ impl SimpleQueryRow {
239240
/// # Panics
240241
///
241242
/// Panics if the index is out of bounds or if the value cannot be converted to the specified type.
243+
#[track_caller]
242244
pubfnget<I>(&self,idx:I) ->Option<&str>
243245
where
244246
I:RowIndex + fmt::Display,

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp