File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -320,7 +320,7 @@ impl<'a> Arguments<'a> {
320
320
#[ rustc_const_unstable( feature = "const_fmt_arguments_new" , issue = "none" ) ]
321
321
pub const fn new_const ( pieces : & ' a [ & ' static str ] ) -> Self {
322
322
if pieces. len ( ) > 1 {
323
- panic ! ( "invalid args" ) ;
323
+ crate :: panicking :: panic ( "invalid args" ) ;
324
324
}
325
325
Arguments { pieces, fmt : None , args : & [ ] }
326
326
}
@@ -330,7 +330,7 @@ impl<'a> Arguments<'a> {
330
330
#[ inline]
331
331
pub fn new_v1 ( pieces : & ' a [ & ' static str ] , args : & ' a [ rt:: Argument < ' a > ] ) -> Arguments < ' a > {
332
332
if pieces. len ( ) < args. len ( ) || pieces. len ( ) > args. len ( ) + 1 {
333
- panic ! ( "invalid args" ) ;
333
+ crate :: panicking :: panic ( "invalid args" ) ;
334
334
}
335
335
Arguments { pieces, fmt : None , args }
336
336
}
You can’t perform that action at this time.
0 commit comments