Skip to content

Commit b386862

Browse files
karambarakatabonander
authored andcommitted
Update row.rs
Row::get should track caller for a better development experience.
1 parent 6b33766 commit b386862

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

sqlx-core/src/row.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -64,6 +64,7 @@ pub trait Row: Unpin + Send + Sync + 'static {
6464
/// See [`try_get`](Self::try_get) for a non-panicking version.
6565
///
6666
#[inline]
67+
#[track_caller]
6768
fn get<'r, T, I>(&'r self, index: I) -> T
6869
where
6970
I: ColumnIndex<Self>,

0 commit comments

Comments
 (0)