Add #[track_caller] to from_usize.
This commit is contained in:
parent
7677567e54
commit
2647cf17e7
1 changed files with 1 additions and 0 deletions
|
@ -154,6 +154,7 @@ impl Argument<'_> {
|
|||
Self::new(x, UpperExp::fmt)
|
||||
}
|
||||
#[inline]
|
||||
#[track_caller]
|
||||
pub const fn from_usize(x: &usize) -> Argument<'_> {
|
||||
if *x > u16::MAX as usize {
|
||||
panic!("Formatting argument out of range");
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue