From 2012be4a8bd97f2fd69f986c8fffb1af1eec21dc Mon Sep 17 00:00:00 2001 From: Simon Sapin Date: Thu, 1 Nov 2018 21:43:04 +0100 Subject: `cargo fix --edition-idioms` --- components/script/build.rs | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) (limited to 'components/script/build.rs') diff --git a/components/script/build.rs b/components/script/build.rs index 0abb25ef24a..83b96495e16 100644 --- a/components/script/build.rs +++ b/components/script/build.rs @@ -2,12 +2,10 @@ * License, v. 2.0. If a copy of the MPL was not distributed with this * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ -extern crate cmake; -extern crate phf_codegen; -extern crate phf_shared; -extern crate serde_json; - -use serde_json::Value; +use cmake; +use phf_codegen; +use phf_shared; +use serde_json::{self, Value}; use std::env; use std::fmt; use std::fs::File; -- cgit v1.2.3 From 9f977c52878e3638f475ca9a78e9f57d0d22893d Mon Sep 17 00:00:00 2001 From: Simon Sapin Date: Wed, 7 Nov 2018 17:08:14 +0100 Subject: Remove useless `use crate_name;` imports. A `crate_name::foo` path always works in 2018 --- components/script/build.rs | 2 -- 1 file changed, 2 deletions(-) (limited to 'components/script/build.rs') diff --git a/components/script/build.rs b/components/script/build.rs index 83b96495e16..a12503d67f7 100644 --- a/components/script/build.rs +++ b/components/script/build.rs @@ -2,8 +2,6 @@ * License, v. 2.0. If a copy of the MPL was not distributed with this * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ -use cmake; -use phf_codegen; use phf_shared; use serde_json::{self, Value}; use std::env; -- cgit v1.2.3