From 25a1bcb5be6920add288b476a92b3eddf7d96a99 Mon Sep 17 00:00:00 2001 From: Alex Crichton Date: Sat, 4 Aug 2018 15:16:02 -0700 Subject: [PATCH] Fix tests on master --- crates/webidl/src/util.rs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/crates/webidl/src/util.rs b/crates/webidl/src/util.rs index 8581eaee..ceef5c81 100644 --- a/crates/webidl/src/util.rs +++ b/crates/webidl/src/util.rs @@ -1,7 +1,7 @@ use std::iter::{self, FromIterator}; use backend; -use backend::util::{ident_ty, leading_colon_path_ty, raw_ident, rust_ident, simple_path_ty}; +use backend::util::{ident_ty, leading_colon_path_ty, raw_ident, rust_ident}; use heck::{CamelCase, SnakeCase}; use proc_macro2::Ident; use syn; @@ -356,7 +356,7 @@ impl<'a> FirstPassRecord<'a> { let base_ty = match ty.kind { // `any` becomes `::wasm_bindgen::JsValue`. webidl::ast::TypeKind::Any => { - simple_path_ty(vec![rust_ident("wasm_bindgen"), rust_ident("JsValue")]) + leading_colon_path_ty(vec![rust_ident("wasm_bindgen"), rust_ident("JsValue")]) } // A reference to a type by name becomes the same thing in the @@ -427,7 +427,7 @@ impl<'a> FirstPassRecord<'a> { // // https://heycam.github.io/webidl/#es-buffer-source-types webidl::ast::TypeKind::ArrayBuffer => { - simple_path_ty(vec![rust_ident("js_sys"), rust_ident("ArrayBuffer")]) + leading_colon_path_ty(vec![rust_ident("js_sys"), rust_ident("ArrayBuffer")]) } // Support for these types is not yet implemented, so skip