Skip to content

Commit

Permalink
Merge pull request #1104 from njaard/master
Browse files Browse the repository at this point in the history
add #[track_caller] to the Row::get() functions
  • Loading branch information
sfackler authored Feb 17, 2024
2 parents 8989fc9 + 25314a9 commit ba1b4cf
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 1 addition & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@ jobs:
- run: docker compose up -d
- uses: sfackler/actions/rustup@master
with:
version: 1.71.0
version: 1.74.0
- run: echo "version=$(rustc --version)" >> $GITHUB_OUTPUT
id: rust-version
- uses: actions/cache@v3
Expand Down
2 changes: 2 additions & 0 deletions tokio-postgres/src/row.rs
Original file line number Diff line number Diff line change
Expand Up @@ -141,6 +141,7 @@ impl Row {
/// # Panics
///
/// Panics if the index is out of bounds or if the value cannot be converted to the specified type.
#[track_caller]
pub fn get<'a, I, T>(&'a self, idx: I) -> T
where
I: RowIndex + fmt::Display,
Expand Down Expand Up @@ -239,6 +240,7 @@ impl SimpleQueryRow {
/// # Panics
///
/// Panics if the index is out of bounds or if the value cannot be converted to the specified type.
#[track_caller]
pub fn get<I>(&self, idx: I) -> Option<&str>
where
I: RowIndex + fmt::Display,
Expand Down

0 comments on commit ba1b4cf

Please sign in to comment.