Skip to content

Commit 17c9bc0

Browse files
Lord-McSweeneyLord-McSweeney
Lord-McSweeney
authored and
Lord-McSweeney
committed
chore: appease clippy
1 parent 2fbdff6 commit 17c9bc0

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

core/src/avm1/globals/object.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -92,7 +92,7 @@ pub fn add_property<'gc>(
9292
}
9393
}
9494

95-
return Ok(false.into());
95+
Ok(false.into())
9696
}
9797

9898
/// Implements `Object.prototype.hasOwnProperty`

core/src/string/avm_string.rs

+2-2
Original file line numberDiff line numberDiff line change
@@ -127,10 +127,10 @@ impl PartialEq for AvmString<'_> {
127127
fn eq(&self, other: &Self) -> bool {
128128
if Gc::ptr_eq(self.0, other.0) {
129129
// Fast accept for identical strings.
130-
return true;
130+
true
131131
} else if self.0.is_interned() && other.0.is_interned() {
132132
// Fast reject for distinct interned strings.
133-
return false;
133+
false
134134
} else {
135135
// Fallback case.
136136
self.as_wstr() == other.as_wstr()

0 commit comments

Comments
 (0)