Remove F: Fn bound from FromFn struct
This commit is contained in:
parent
859ae05e93
commit
93c8bf1309
1 changed files with 1 additions and 3 deletions
|
|
@ -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>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue