diff options
| author | blyxyas <blyxyas@gmail.com> | 2024-05-23 18:45:03 +0200 |
|---|---|---|
| committer | blyxyas <blyxyas@gmail.com> | 2024-05-23 18:45:03 +0200 |
| commit | d6e69188578d95d6bb75cd00cec62e375e62ba6b (patch) | |
| tree | 45b36116e5cd95ff42691fc212a8014bc578eb46 | |
| parent | bec10295d489353f3143e3c2b435ac982189e2a4 (diff) | |
| download | rust-d6e69188578d95d6bb75cd00cec62e375e62ba6b.tar.gz rust-d6e69188578d95d6bb75cd00cec62e375e62ba6b.zip | |
Make clamp inline
| -rw-r--r-- | library/core/src/cmp.rs | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/library/core/src/cmp.rs b/library/core/src/cmp.rs index fc6022ab753..f3f757ce69d 100644 --- a/library/core/src/cmp.rs +++ b/library/core/src/cmp.rs @@ -898,6 +898,7 @@ pub trait Ord: Eq + PartialOrd<Self> { /// assert_eq!(2.clamp(-2, 1), 1); /// ``` #[must_use] + #[inline] #[stable(feature = "clamp", since = "1.50.0")] fn clamp(self, min: Self, max: Self) -> Self where |
