Skip to content

Commit

Permalink
Always inline primitive data types.
Browse files Browse the repository at this point in the history
  • Loading branch information
Jerrody authored Jun 25, 2023
1 parent 3c5d71a commit bb33730
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion library/core/src/default.rs
Original file line number Diff line number Diff line change
Expand Up @@ -190,7 +190,7 @@ macro_rules! default_impl {
($t:ty, $v:expr, $doc:tt) => {
#[stable(feature = "rust1", since = "1.0.0")]
impl Default for $t {
#[inline]
#[inline(always)]
#[doc = $doc]
fn default() -> $t {
$v
Expand Down

0 comments on commit bb33730

Please sign in to comment.