From f2ecee36383736daa7ccf1152d0305fdd8af7661 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Matthias=20Kr=C3=BCger?= Date: Sun, 23 Sep 2018 14:44:06 +0200 Subject: [PATCH] clippy_dev: port to edition 2018 --- clippy_dev/Cargo.toml | 3 +++ clippy_dev/src/lib.rs | 7 ++----- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/clippy_dev/Cargo.toml b/clippy_dev/Cargo.toml index 503dd53aa20..519f78999b9 100644 --- a/clippy_dev/Cargo.toml +++ b/clippy_dev/Cargo.toml @@ -1,7 +1,10 @@ +cargo-features = ["edition"] + [package] name = "clippy_dev" version = "0.0.1" authors = ["Philipp Hansch "] +edition = "2018" [dependencies] clap = "~2.32" diff --git a/clippy_dev/src/lib.rs b/clippy_dev/src/lib.rs index f10ad81d130..e5ce8580fa1 100644 --- a/clippy_dev/src/lib.rs +++ b/clippy_dev/src/lib.rs @@ -1,12 +1,9 @@ #![feature(tool_lints)] #![allow(clippy::default_hash_types)] -extern crate regex; -#[macro_use] -extern crate lazy_static; -extern crate itertools; -use regex::Regex; use itertools::Itertools; +use lazy_static::lazy_static; +use regex::Regex; use std::collections::HashMap; use std::ffi::OsStr; use std::fs;