Skip to content

Commit f3a7429

Browse files
committed
Upgrade to rust 2018
1 parent 6c84957 commit f3a7429

File tree

3 files changed

+4
-7
lines changed

3 files changed

+4
-7
lines changed

Cargo.toml

+1
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@ license = "MIT/Apache-2.0"
77
repository = "https://github.com/jabedude/acct"
88
documentation = "https://docs.rs/acct/0.6.0/acct/"
99
keywords = ["acct", "unix", "process", "accounting", "pacct"]
10+
edition = "2018"
1011

1112
[lib]
1213
name = "acct"

src/bin.rs

-4
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,3 @@
1-
extern crate acct;
2-
extern crate chrono;
3-
extern crate clap;
4-
51
use acct::AcctFile;
62
use chrono::prelude::DateTime;
73
use chrono::Utc;

src/lib.rs

+3-3
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,8 @@
66
77
#[macro_use]
88
extern crate serde_derive;
9-
extern crate bincode;
10-
extern crate libc;
9+
use bincode;
10+
1111

1212
use bincode::{deserialize, serialize};
1313
use libc::{getpwuid, passwd};
@@ -57,7 +57,7 @@ impl From<std::boxed::Box<bincode::ErrorKind>> for Error {
5757
}
5858

5959
impl fmt::Display for Error {
60-
fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result {
60+
fn fmt(&self, f: &mut fmt::Formatter<'_>) -> fmt::Result {
6161
match *self {
6262
Error::InvalidFile => write!(f, "Invalid file"),
6363
Error::BadReader => write!(f, "Invalid reader"),

0 commit comments

Comments
 (0)