Skip to content

Commit 9e67854

Browse files
committed
Make core::fmt::rt::v1::Argument::new const+inline.
1 parent 36fe3b9 commit 9e67854

File tree

1 file changed

+2
-1
lines changed
  • library/core/src/fmt/rt

1 file changed

+2
-1
lines changed

library/core/src/fmt/rt/v1.rs

+2-1
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,8 @@ pub struct FormatSpec {
2323
}
2424

2525
impl Argument {
26-
pub fn new(
26+
#[inline(always)]
27+
pub const fn new(
2728
position: usize,
2829
fill: char,
2930
align: Alignment,

0 commit comments

Comments
 (0)