fix deprecated warning

This commit is contained in:
poma 2020-04-23 18:26:55 +03:00
parent 91b65c72c3
commit be9a8552fa
No known key found for this signature in database
GPG Key ID: BA20CB01FE165657
2 changed files with 2 additions and 2 deletions

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

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