Skip to content

Commit

Permalink
Make core::fmt::rt::v1::Argument::new const+inline.
Browse files Browse the repository at this point in the history
  • Loading branch information
m-ou-se committed Jan 11, 2023
1 parent 36fe3b9 commit 9e67854
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion library/core/src/fmt/rt/v1.rs
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,8 @@ pub struct FormatSpec {
}

impl Argument {
pub fn new(
#[inline(always)]
pub const fn new(
position: usize,
fill: char,
align: Alignment,
Expand Down

0 comments on commit 9e67854

Please sign in to comment.