This commit is contained in:
Olivier Pinon 2020-04-25 02:05:17 +02:00
parent ce2ed35a1a
commit f1e18d0935

View File

@ -81,10 +81,7 @@ impl<T> Command<T> {
///
/// [`Command`]: struct.Command.html
#[cfg(target_arch = "wasm32")]
pub fn map<A>(
mut self,
f: impl Fn(T) -> A + 'static,
) -> Command<A>
pub fn map<A>(mut self, f: impl Fn(T) -> A + 'static) -> Command<A>
where
T: 'static,
{
@ -151,7 +148,6 @@ where
}
}
impl<T> std::fmt::Debug for Command<T> {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
f.debug_struct("Command").finish()