Skip to content

Commit e4d36f1

Browse files
committed
fmt
1 parent 6fc10e6 commit e4d36f1

File tree

2 files changed

+2
-3
lines changed

2 files changed

+2
-3
lines changed

library/core/src/result.rs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -820,8 +820,7 @@ impl<T, E> Result<T, E> {
820820
#[stable(feature = "rust1", since = "1.0.0")]
821821
#[rustc_const_unstable(feature = "const_trait_impl", issue = "67792")]
822822
#[rustc_allow_const_fn_unstable(const_precise_live_drops)]
823-
pub const fn map<U, F: ~const FnOnce(T) -> U + ~const Destruct>(self, op: F) -> Result<U, E>
824-
{
823+
pub const fn map<U, F: ~const FnOnce(T) -> U + ~const Destruct>(self, op: F) -> Result<U, E> {
825824
match self {
826825
Ok(t) => Ok(op(t)),
827826
Err(e) => Err(e),

tests/ui/traits/const-traits/const-traits-result.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,4 +52,4 @@ const _: () = {
5252
();
5353
};
5454

55-
fn main() {}
55+
fn main() {}

0 commit comments

Comments
 (0)