Run cargo fix --edition-idioms

This commit is contained in:
Linus Färnstrand
2019-03-25 15:15:41 +01:00
parent d8f3cc1992
commit 61eeb5843f
6 changed files with 9 additions and 9 deletions

View File

@ -10,7 +10,7 @@ pub enum IpNetworkError {
}
impl fmt::Display for IpNetworkError {
fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result {
fn fmt(&self, f: &mut fmt::Formatter<'_>) -> fmt::Result {
use crate::IpNetworkError::*;
match *self {
InvalidAddr(ref s) => write!(f, "invalid address: {}", s),