You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@milagro.apache.org by km...@apache.org on 2020/03/31 08:54:36 UTC
[incubator-milagro-crypto-rust] 21/31: Fix issue displaying FP
values
This is an automated email from the ASF dual-hosted git repository.
kmccusker pushed a commit to branch develop
in repository https://gitbox.apache.org/repos/asf/incubator-milagro-crypto-rust.git
commit a8d03306201b9654658201d8eefb4dcd99c0b2d7
Author: Kirk Baird <ba...@outlook.com>
AuthorDate: Thu Jan 23 10:15:36 2020 +1100
Fix issue displaying FP values
Signed-off-by: Kirk Baird <ba...@outlook.com>
---
src/fp.rs | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/src/fp.rs b/src/fp.rs
index 72b7390..54eff31 100644
--- a/src/fp.rs
+++ b/src/fp.rs
@@ -40,13 +40,13 @@ impl PartialEq for FP {
impl fmt::Display for FP {
fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result {
- write!(f, "FP: [ {} ]", self.x)
+ write!(f, "FP: [ {} ]", self.tostring())
}
}
impl fmt::Debug for FP {
fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result {
- write!(f, "FP: [ {} ]", self.x)
+ write!(f, "FP: [ {} ]", self.tostring())
}
}