Skip to content

Commit

Permalink
cargo fix edition idioms
Browse files Browse the repository at this point in the history
  • Loading branch information
fkohlgrueber committed Jul 25, 2019
1 parent 68f1ba8 commit 47cb093
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 6 deletions.
6 changes: 3 additions & 3 deletions src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -65,8 +65,8 @@
#![deny(missing_docs)]
#![cfg_attr(test, deny(warnings))]

extern crate byteorder;
extern crate dirs;



use std::io::prelude::*;

Expand Down Expand Up @@ -254,7 +254,7 @@ impl std::cmp::PartialEq for Error {
pub type Result<T> = std::result::Result<T, Error>;

impl std::fmt::Display for Error {
fn fmt(&self, f: &mut std::fmt::Formatter) -> std::fmt::Result {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
use std::error::Error;
if let crate::Error::Io(ref e) = *self {
write!(f, "{}", e)
Expand Down
2 changes: 1 addition & 1 deletion src/terminfo/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -205,7 +205,7 @@ pub enum Error {
}

impl ::std::fmt::Display for Error {
fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result {
use std::error::Error;
match *self {
NotUtf8(e) => write!(f, "{}", e),
Expand Down
2 changes: 1 addition & 1 deletion src/terminfo/parm.rs
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ pub enum Error {
}

impl ::std::fmt::Display for Error {
fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result {
use std::error::Error;
f.write_str(self.description())
}
Expand Down
2 changes: 1 addition & 1 deletion tests/terminfo.rs
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
extern crate term;


use term::terminfo::TermInfo;
use term::terminfo::TerminfoTerminal;
Expand Down

0 comments on commit 47cb093

Please sign in to comment.