From e8dd564c2839aabc157f7e1c1966d072e9c6c0ef Mon Sep 17 00:00:00 2001 From: kanishkgits Date: Mon, 7 Oct 2024 22:41:34 +0530 Subject: [PATCH] Update smooth_sort.rs --- src/sorting/smooth_sort.rs | 2 -- 1 file changed, 2 deletions(-) diff --git a/src/sorting/smooth_sort.rs b/src/sorting/smooth_sort.rs index a2a2f920c35..c0a402fab51 100644 --- a/src/sorting/smooth_sort.rs +++ b/src/sorting/smooth_sort.rs @@ -52,9 +52,7 @@ fn heapify_leonardo(nums: &mut [i32], index: usize, sizes: &[usize], mut heaps: let mut current = index; while heaps > 1 && heaps <= sizes.len() { let heap_size = sizes[heaps - 1]; - } - while heaps > 1 { if current < heap_size { break; }