From 90e1125eff8ff090f3282b501d69172da36002a2 Mon Sep 17 00:00:00 2001 From: Steven Roose Date: Fri, 23 Oct 2020 21:28:46 +0100 Subject: [PATCH] Remove debug_assert in PublicKey::write_into --- src/util/key.rs | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/util/key.rs b/src/util/key.rs index bf9b9cc3..2c4e6a35 100644 --- a/src/util/key.rs +++ b/src/util/key.rs @@ -102,12 +102,11 @@ impl PublicKey { /// Write the public key into a writer pub fn write_into(&self, mut writer: W) { - let write_res: io::Result<()> = if self.compressed { + let _: io::Result<()> = if self.compressed { writer.write_all(&self.key.serialize()) } else { writer.write_all(&self.key.serialize_uncompressed()) }; - debug_assert!(write_res.is_ok()); } /// Serialize the public key to bytes