From d7c3b7448b5be7d662614772220cdfc4ca2ca922 Mon Sep 17 00:00:00 2001 From: Jules Bertholet Date: Fri, 23 Jul 2021 17:21:45 +0200 Subject: [PATCH] Rework PartialEq impl --- crates/js-sys/src/lib.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/crates/js-sys/src/lib.rs b/crates/js-sys/src/lib.rs index 62f034ebd52..0084e1632d4 100644 --- a/crates/js-sys/src/lib.rs +++ b/crates/js-sys/src/lib.rs @@ -923,7 +923,7 @@ macro_rules! bigint_from { impl PartialEq<$x> for BigInt { #[inline] fn eq(&self, other: &$x) -> bool { - JsValue::from(self) == JsValue::from(BigInt::from(*other)) + JsValue::from(self) == BigInt::from(*other).unchecked_into::() } } )*)