From 39f2823ce91546e33c4fb31b82a549bbb13f4915 Mon Sep 17 00:00:00 2001 From: Trevor Wilson Date: Sat, 15 Feb 2025 18:55:40 -0700 Subject: [PATCH] fix `is_sorted_by` ambiguity --- src/polyfill.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/polyfill.rs b/src/polyfill.rs index edfa36d..b9cbc5a 100644 --- a/src/polyfill.rs +++ b/src/polyfill.rs @@ -297,7 +297,7 @@ mod definitions { where F: FnMut(&'a T, &'a T) -> Option, { - self.iter().is_sorted_by(|a, b| compare(*a, *b)) + IterIsSorted::is_sorted_by(self.iter(), |a, b| compare(*a, *b)) } }