Skip to content

Commit f7d7a35

Browse files
committed
track_caller for clamp
1 parent 3fadbd5 commit f7d7a35

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

library/core/src/cmp.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1999,6 +1999,7 @@ mod impls {
19991999
}
20002000

20012001
#[inline]
2002+
#[track_caller]
20022003
fn clamp(self, min: Self, max: Self) -> Self
20032004
{
20042005
assert!(min <= max, "min > max. min = {min}, max = {max}");

0 commit comments

Comments
 (0)