Skip to content

Commit 6cc4e7e

Browse files
authored
Add inline attribute to NonZero::from_str
1 parent 9a9d194 commit 6cc4e7e

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

‎library/core/src/num/nonzero.rs‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1449,6 +1449,7 @@ macro_rules! nonzero_integer {
14491449
///
14501450
#[doc = concat!("assert!(NonZero::<", stringify!($Int), ">::from_str(\"1 \").is_err());")]
14511451
/// ```
1452+
#[inline]
14521453
fn from_str(src: &str) -> Result<Self, Self::Err> {
14531454
Self::from_str_radix(src, 10)
14541455
}

0 commit comments

Comments
 (0)