aboutsummaryrefslogtreecommitdiffstats
path: root/components/script_plugins/webidl_must_inherit.rs
diff options
context:
space:
mode:
authorkrk <keremkat@gmail.com>2019-04-16 21:48:33 +0200
committerkrk <keremkat@gmail.com>2019-04-20 22:39:38 +0200
commit32049d1ab6e64103b39490498061e81231492437 (patch)
treec3e7be688b9699b6b05043142558bfbfbd69eb6d /components/script_plugins/webidl_must_inherit.rs
parent0e3ee8b60bc0b60db5327cddb8adb8bc42a425cf (diff)
downloadservo-32049d1ab6e64103b39490498061e81231492437.tar.gz
servo-32049d1ab6e64103b39490498061e81231492437.zip
Remove debug logs.
Diffstat (limited to 'components/script_plugins/webidl_must_inherit.rs')
-rw-r--r--components/script_plugins/webidl_must_inherit.rs8
1 files changed, 1 insertions, 7 deletions
diff --git a/components/script_plugins/webidl_must_inherit.rs b/components/script_plugins/webidl_must_inherit.rs
index 1d5f3b4e49c..43453766176 100644
--- a/components/script_plugins/webidl_must_inherit.rs
+++ b/components/script_plugins/webidl_must_inherit.rs
@@ -106,8 +106,6 @@ fn check_inherits(code: &str, name: &str, parent_name: &str) -> Result<(), Box<E
visitor.visit(&idl);
let inherits = visitor.get_inherits();
- println!("inherits: {:?}, parent_name: {:?}", inherits, parent_name);
-
if inherits == parent_name {
return Ok(());
}
@@ -137,8 +135,6 @@ fn check_inherits(code: &str, name: &str, parent_name: &str) -> Result<(), Box<E
fn check_webidl(name: &str, parent_name: Option<&str>) -> Result<(), Box<Error>> {
let path = get_webidl_path(&name)?;
- println!("struct_webidl_path: {:?}", &path);
-
if let Some(parent) = parent_name {
let code = fs::read_to_string(path)?;
return check_inherits(&code, &name, parent);
@@ -179,9 +175,6 @@ impl<'a, 'tcx> LateLintPass<'a, 'tcx> for WebIdlPass {
.expect_item_by_hir_id(cx.tcx.hir().get_parent_item(id)),
};
- let struct_name = n.to_string();
- println!("struct_name: {:?}", struct_name);
-
let ty: String;
let mut parent_name: Option<&str> = None;
for ref field in def.fields() {
@@ -194,6 +187,7 @@ impl<'a, 'tcx> LateLintPass<'a, 'tcx> for WebIdlPass {
break;
}
+ let struct_name = n.to_string();
match check_webidl(&struct_name, parent_name) {
Ok(()) => {},
Err(e) => {