@@ -324,7 +324,7 @@ impl<'a> Arguments<'a> {
324
324
#[ doc( hidden) ]
325
325
#[ inline]
326
326
#[ unstable( feature = "fmt_internals" , reason = "internal to format_args!" , issue = "none" ) ]
327
- pub fn new_v1 ( pieces : & ' a [ & ' a str ] , args : & ' a [ ArgumentV1 < ' a > ] ) -> Arguments < ' a > {
327
+ pub fn new_v1 ( pieces : & ' a [ & ' static str ] , args : & ' a [ ArgumentV1 < ' a > ] ) -> Arguments < ' a > {
328
328
Arguments { pieces, fmt : None , args }
329
329
}
330
330
@@ -338,7 +338,7 @@ impl<'a> Arguments<'a> {
338
338
#[ inline]
339
339
#[ unstable( feature = "fmt_internals" , reason = "internal to format_args!" , issue = "none" ) ]
340
340
pub fn new_v1_formatted (
341
- pieces : & ' a [ & ' a str ] ,
341
+ pieces : & ' a [ & ' static str ] ,
342
342
args : & ' a [ ArgumentV1 < ' a > ] ,
343
343
fmt : & ' a [ rt:: v1:: Argument ] ,
344
344
) -> Arguments < ' a > {
@@ -399,7 +399,7 @@ impl<'a> Arguments<'a> {
399
399
#[ derive( Copy , Clone ) ]
400
400
pub struct Arguments < ' a > {
401
401
// Format string pieces to print.
402
- pieces : & ' a [ & ' a str ] ,
402
+ pieces : & ' a [ & ' static str ] ,
403
403
404
404
// Placeholder specs, or `None` if all specs are default (as in "{}{}").
405
405
fmt : Option < & ' a [ rt:: v1:: Argument ] > ,
@@ -441,7 +441,7 @@ impl<'a> Arguments<'a> {
441
441
/// ```
442
442
#[ unstable( feature = "fmt_as_str" , issue = "none" ) ]
443
443
#[ inline]
444
- pub fn as_str ( & self ) -> Option < & ' a str > {
444
+ pub fn as_str ( & self ) -> Option < & ' static str > {
445
445
match ( self . pieces , self . args ) {
446
446
( [ ] , [ ] ) => Some ( "" ) ,
447
447
( [ s] , [ ] ) => Some ( s) ,
0 commit comments