diff --git a/asyncgit/src/sync/sign.rs b/asyncgit/src/sync/sign.rs index 44c6cfd287..2908d5084e 100644 --- a/asyncgit/src/sync/sign.rs +++ b/asyncgit/src/sync/sign.rs @@ -192,11 +192,9 @@ impl SignBuilder { NamedTempFile::new().map_err(|err| { SignBuilderError::SSHSigningKey(err.to_string()) })?; - writeln!(temp_file, "{signing_key}").map_err( - |err| { - SignBuilderError::SSHSigningKey(err.to_string()) - }, - )?; + writeln!(temp_file, "{signing_key}").map_err(|err| { + SignBuilderError::SSHSigningKey(err.to_string()) + })?; let temp_file = temp_file.keep().map_err(|err| { SignBuilderError::SSHSigningKey(err.to_string()) })?;