Skip to content

Commit 8b81937

Browse files
authored
Format
1 parent 9de2745 commit 8b81937

File tree

1 file changed

+8
-2
lines changed

1 file changed

+8
-2
lines changed

library/core/src/option.rs

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1498,7 +1498,10 @@ impl<T: Clone> Option<&T> {
14981498
#[must_use = "`self` will be dropped if the result is not used"]
14991499
#[stable(feature = "rust1", since = "1.0.0")]
15001500
#[rustc_const_unstable(feature = "const_option_cloned", issue = "none")]
1501-
pub const fn cloned(self) -> Option<T> where T: ~const Clone {
1501+
pub const fn cloned(self) -> Option<T>
1502+
where
1503+
T: ~const Clone,
1504+
{
15021505
match self {
15031506
Some(t) => Some(t.clone()),
15041507
None => None,
@@ -1522,7 +1525,10 @@ impl<T: Clone> Option<&mut T> {
15221525
#[must_use = "`self` will be dropped if the result is not used"]
15231526
#[stable(since = "1.26.0", feature = "option_ref_mut_cloned")]
15241527
#[rustc_const_unstable(feature = "const_option_cloned", issue = "none")]
1525-
pub const fn cloned(self) -> Option<T> where T: ~const Clone {
1528+
pub const fn cloned(self) -> Option<T>
1529+
where
1530+
T: ~const Clone,
1531+
{
15261532
match self {
15271533
Some(t) => Some(t.clone()),
15281534
None => None,

0 commit comments

Comments
 (0)