cargo fix --edition-idioms for ff

This commit is contained in:
Eirik Ogilvie-Wigley 2019-08-20 22:01:46 -06:00
parent 3b0cf72f42
commit 82574c25a6
1 changed files with 3 additions and 3 deletions

View File

@ -1,7 +1,7 @@
#![allow(unused_imports)]
extern crate byteorder;
extern crate rand_core;
#[cfg(feature = "derive")]
#[macro_use]
@ -210,7 +210,7 @@ impl Error for PrimeFieldDecodingError {
}
impl fmt::Display for PrimeFieldDecodingError {
fn fmt(&self, f: &mut fmt::Formatter) -> Result<(), fmt::Error> {
fn fmt(&self, f: &mut fmt::Formatter<'_>) -> Result<(), fmt::Error> {
match *self {
PrimeFieldDecodingError::NotInField(ref repr) => {
write!(f, "{} is not an element of the field", repr)