Skip to content

Commit 612f4ef

Browse files
committed
fix: lint issue
1 parent 1a8cd11 commit 612f4ef

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/helpers/helper_extras.rs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -10,10 +10,10 @@ use crate::json::value::JsonTruthy;
1010

1111
handlebars_helper!(eq: |x: Json, y: Json| x == y);
1212
handlebars_helper!(ne: |x: Json, y: Json| x != y);
13-
handlebars_helper!(gt: |x: Json, y: Json| compare_json(x, y).map_or(false, |ord| ord == Ordering::Greater));
14-
handlebars_helper!(gte: |x: Json, y: Json| compare_json(x, y).map_or(false, |ord| ord != Ordering::Less));
15-
handlebars_helper!(lt: |x: Json, y: Json| compare_json(x, y).map_or(false, |ord| ord == Ordering::Less));
16-
handlebars_helper!(lte: |x: Json, y: Json| compare_json(x, y).map_or(false, |ord| ord != Ordering::Greater));
13+
handlebars_helper!(gt: |x: Json, y: Json| compare_json(x, y) == Some(Ordering::Greater));
14+
handlebars_helper!(gte: |x: Json, y: Json| compare_json(x, y) == Some(Ordering::Less));
15+
handlebars_helper!(lt: |x: Json, y: Json| compare_json(x, y) == Some(Ordering::Less));
16+
handlebars_helper!(lte: |x: Json, y: Json| compare_json(x, y) == Some(Ordering::Greater));
1717
handlebars_helper!(and: |x: Json, y: Json| x.is_truthy(false) && y.is_truthy(false));
1818
handlebars_helper!(or: |x: Json, y: Json| x.is_truthy(false) || y.is_truthy(false));
1919
handlebars_helper!(not: |x: Json| !x.is_truthy(false));

0 commit comments

Comments
 (0)