Skip to content

Commit ba1b4cf

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

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

.github/workflows/ci.yml

+1-1
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

+2
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
pub fn get<'a, I, T>(&'a self, 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
pub fn get<I>(&self, idx: I) -> Option<&str>
243245
where
244246
I: RowIndex + fmt::Display,

0 commit comments

Comments
 (0)