mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-22 14:55:26 +00:00
Make core::fmt::rt::v1::Argument::new const+inline.
This commit is contained in:
parent
36fe3b971d
commit
9e6785430b
@ -23,7 +23,8 @@ pub struct FormatSpec {
|
||||
}
|
||||
|
||||
impl Argument {
|
||||
pub fn new(
|
||||
#[inline(always)]
|
||||
pub const fn new(
|
||||
position: usize,
|
||||
fill: char,
|
||||
align: Alignment,
|
||||
|
Loading…
Reference in New Issue
Block a user