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()), } } }