Remove F: Fn bound from FromFn struct

This commit is contained in:
Noa 2025-09-19 13:27:11 -05:00
parent 859ae05e93
commit 93c8bf1309
No known key found for this signature in database
GPG key ID: 7F9F7DB1768C59CF

View file

@ -1236,9 +1236,7 @@ pub fn from_fn<F: Fn(&mut fmt::Formatter<'_>) -> fmt::Result>(f: F) -> FromFn<F>
///
/// Created with [`from_fn`].
#[stable(feature = "fmt_from_fn", since = "CURRENT_RUSTC_VERSION")]
pub struct FromFn<F>(F)
where
F: Fn(&mut fmt::Formatter<'_>) -> fmt::Result;
pub struct FromFn<F>(F);
#[stable(feature = "fmt_from_fn", since = "CURRENT_RUSTC_VERSION")]
impl<F> fmt::Debug for FromFn<F>