Skip to content

Commit ccce1ee

Browse files
committed
add #[track_caller] to assert_param_name
1 parent 6d59da5 commit ccce1ee

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

glib/src/param_spec.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -411,6 +411,8 @@ macro_rules! define_param_spec_numeric {
411411
};
412412
}
413413

414+
#[track_caller]
415+
// the default panic formatter will use its caller as the location in its error message
414416
fn assert_param_name(name: &str) {
415417
assert!(
416418
is_canonical_pspec_name(name),

0 commit comments

Comments
 (0)