Skip to content

Commit c14d38d

Browse files
committed
Remove F: Fn bound from FromFn struct
1 parent a4c01a5 commit c14d38d

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

library/core/src/fmt/builders.rs

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1236,9 +1236,7 @@ pub fn from_fn<F: Fn(&mut fmt::Formatter<'_>) -> fmt::Result>(f: F) -> FromFn<F>
12361236
///
12371237
/// Created with [`from_fn`].
12381238
#[stable(feature = "fmt_from_fn", since = "CURRENT_RUSTC_VERSION")]
1239-
pub struct FromFn<F>(F)
1240-
where
1241-
F: Fn(&mut fmt::Formatter<'_>) -> fmt::Result;
1239+
pub struct FromFn<F>(F);
12421240

12431241
#[stable(feature = "fmt_from_fn", since = "CURRENT_RUSTC_VERSION")]
12441242
impl<F> fmt::Debug for FromFn<F>

0 commit comments

Comments
 (0)