Skip to content

Commit c9edeab

Browse files
committed
Fix rust 1.96.0 clippy lints
1 parent e3083b1 commit c9edeab

2 files changed

Lines changed: 2 additions & 1 deletion

File tree

core/engine/src/builtins/proxy/mod.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -853,6 +853,7 @@ pub(crate) fn proxy_exotic_get(
853853
}
854854
}
855855
// b. If IsAccessorDescriptor(targetDesc) is true and targetDesc.[[Get]] is undefined, then
856+
#[allow(clippy::collapsible_match)] // NOTE: not collapsed to match the spec.
856857
CompletePropertyDescriptor::Accessor { get: None, .. } => {
857858
// i. If trapResult is not undefined, throw a TypeError exception.
858859
if !trap_result.is_undefined() {

core/engine/src/context/mod.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -786,7 +786,7 @@ impl Context {
786786
global_object.__get_own_property__(&name.clone().into(), &mut self.into())?;
787787

788788
// 4. If existingProp is undefined or existingProp.[[Configurable]] is true, then
789-
let desc = if existing_prop.is_none() || existing_prop.is_some_and(|p| p.configurable()) {
789+
let desc = if existing_prop.is_none_or(|p| p.configurable()) {
790790
// a. Let desc be the PropertyDescriptor { [[Value]]: V, [[Writable]]: true, [[Enumerable]]: true, [[Configurable]]: D }.
791791
PropertyDescriptor::builder()
792792
.value(function.clone())

0 commit comments

Comments
 (0)