Bug 1499359; Remove unused HashMap import and remove namespacing around Table; r=emilio
authorBenjamin Bouvier <benj@benj.me>
Tue, 16 Oct 2018 15:17:10 +0200
changeset 489806 45de3b6b39960fc7a02dc804915718c60ac52e13
parent 489805 1403652ca90125b844c037b1a1f172eed698a777
child 489807 000359cfa7019e7d2edc8fe3d442a5643a81ef61
push id247
push userfmarier@mozilla.com
push dateSat, 27 Oct 2018 01:06:44 +0000
reviewersemilio
bugs1499359
milestone64.0a1
Bug 1499359; Remove unused HashMap import and remove namespacing around Table; r=emilio
servo/components/style/build_gecko.rs
--- a/servo/components/style/build_gecko.rs
+++ b/servo/components/style/build_gecko.rs
@@ -12,17 +12,17 @@ mod common {
     }
 }
 
 #[cfg(feature = "bindgen")]
 mod bindings {
     use bindgen::{Builder, CodegenConfig};
     use regex::Regex;
     use std::cmp;
-    use std::collections::{HashMap, HashSet};
+    use std::collections::HashSet;
     use std::env;
     use std::fs::{self, File};
     use std::io::{Read, Write};
     use std::path::{Path, PathBuf};
     use std::process::{exit, Command};
     use std::slice;
     use std::sync::Mutex;
     use std::time::SystemTime;
@@ -38,17 +38,17 @@ mod bindings {
         println!("cargo:rerun-if-changed={}", path.to_str().unwrap());
         update_last_modified(&path);
 
         let mut contents = String::new();
         File::open(path)
             .expect("Failed to open config file")
             .read_to_string(&mut contents)
             .expect("Failed to read config file");
-        match toml::from_str::<toml::value::Table>(&contents) {
+        match toml::from_str::<Table>(&contents) {
             Ok(result) => result,
             Err(e) => panic!("Failed to parse config file: {}", e),
         }
     }
 
     lazy_static! {
         static ref CONFIG: Table = {
             // Load Gecko's binding generator config from the source tree.