Minor cleanup

This commit is contained in:
Sebastian Dröge 2016-12-18 00:48:58 +02:00
parent 78450a035d
commit 19c8caee1e
2 changed files with 3 additions and 3 deletions

View file

@ -320,8 +320,8 @@ impl Metadata {
};
let args = match script_data.arguments {
flavors::ScriptDataValue::Object(ref objects) => objects,
flavors::ScriptDataValue::ECMAArray(ref objects) => objects,
flavors::ScriptDataValue::Object(ref objects) |
flavors::ScriptDataValue::ECMAArray(ref objects) |
flavors::ScriptDataValue::StrictArray(ref objects) => objects,
_ => return metadata,
};

View file

@ -141,7 +141,7 @@ pub fn gcd(mut a: u32, mut b: u32) -> u32 {
b = tmp % b;
}
return a;
a
}
#[cfg(test)]