Skip to content

Commit

Permalink
Cargo fmt
Browse files Browse the repository at this point in the history
  • Loading branch information
Jules-Bertholet committed Aug 27, 2021
1 parent 14fec9b commit 1e9dadc
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions crates/js-sys/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -182,28 +182,28 @@ macro_rules! partialord_ord {
fn partial_cmp(&self, other: &Self) -> Option<Ordering> {
Some(self.cmp(other))
}

#[inline]
fn lt(&self, other: &Self) -> bool {
JsValue::as_ref(self).lt(JsValue::as_ref(other))
}

#[inline]
fn le(&self, other: &Self) -> bool {
JsValue::as_ref(self).le(JsValue::as_ref(other))
}

#[inline]
fn ge(&self, other: &Self) -> bool {
JsValue::as_ref(self).ge(JsValue::as_ref(other))
}

#[inline]
fn gt(&self, other: &Self) -> bool {
JsValue::as_ref(self).gt(JsValue::as_ref(other))
}
}

impl Ord for $t {
#[inline]
fn cmp(&self, other: &Self) -> Ordering {
Expand Down

0 comments on commit 1e9dadc

Please sign in to comment.