From c0f93a6ea35c41859c21da7d90fb142fa34a2df4 Mon Sep 17 00:00:00 2001 From: Hirokazu Hata Date: Sat, 9 Feb 2019 15:53:12 +0900 Subject: cargo +nightly fix --edition-idioms --- src/bin/main.rs | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'src/bin') diff --git a/src/bin/main.rs b/src/bin/main.rs index 53e95e8b5b6..b357eed34cf 100644 --- a/src/bin/main.rs +++ b/src/bin/main.rs @@ -8,11 +8,11 @@ // option. This file may not be copied, modified, or distributed // except according to those terms. -extern crate env_logger; +use env_logger; #[macro_use] extern crate failure; -extern crate getopts; -extern crate rustfmt_nightly as rustfmt; + +use rustfmt_nightly as rustfmt; use std::env; use std::fs::File; @@ -296,7 +296,7 @@ fn format( Ok(exit_code) } -fn format_and_emit_report(session: &mut Session, input: Input) { +fn format_and_emit_report(session: &mut Session<'_, T>, input: Input) { match session.format(input) { Ok(report) => { if report.has_warnings() { -- cgit 1.4.1-3-g733a5