From 5b8616ea85f17a45d7da29cb3bdf7698e322dc7d Mon Sep 17 00:00:00 2001 From: "Shane F. Carr" Date: Thu, 4 Jan 2024 12:36:10 -0600 Subject: [PATCH] Rust executor: check is_le instead of is_lt (#153) --- executors/rust/1.3/src/collator.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/executors/rust/1.3/src/collator.rs b/executors/rust/1.3/src/collator.rs index 4ccac190..d054ee4d 100644 --- a/executors/rust/1.3/src/collator.rs +++ b/executors/rust/1.3/src/collator.rs @@ -28,7 +28,7 @@ pub fn run_collation_test(json_obj: &Value) -> Result { let comparison = collator.compare(str1, str2); - let result = comparison == Ordering::Less; + let result = comparison.is_le(); // TODO: How to do this easier? let mut result_string = true;