From be9a8552fa37c09bac356f2c5683ed25f03b5d03 Mon Sep 17 00:00:00 2001 From: poma Date: Thu, 23 Apr 2020 18:26:55 +0300 Subject: [PATCH] fix deprecated warning --- bellman/src/cs.rs | 2 +- pairing/src/lib.rs | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/bellman/src/cs.rs b/bellman/src/cs.rs index 9f68c7e..b1395fa 100644 --- a/bellman/src/cs.rs +++ b/bellman/src/cs.rs @@ -199,7 +199,7 @@ impl fmt::Display for SynthesisError { write!(f, "I/O error: ")?; e.fmt(f) } else { - write!(f, "{}", self.description()) + write!(f, "{}", self.to_string()) } } } diff --git a/pairing/src/lib.rs b/pairing/src/lib.rs index 14987eb..2d63956 100644 --- a/pairing/src/lib.rs +++ b/pairing/src/lib.rs @@ -310,7 +310,7 @@ impl fmt::Display for GroupDecodingError { GroupDecodingError::CoordinateDecodingError(description, ref err) => { write!(f, "{} decoding error: {}", description, err) } - _ => write!(f, "{}", self.description()), + _ => write!(f, "{}", self.to_string()), } } }