Skip to content

Commit 7a43e6c

Browse files
committed
Run cargo fmt
1 parent b096213 commit 7a43e6c

File tree

9 files changed

+9
-9
lines changed

9 files changed

+9
-9
lines changed

src/radix_key.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,4 +18,4 @@ impl<T: RadixKey> RadixKeyChecked for T {
1818
debug_assert!(level < Self::LEVELS);
1919
self.get_level(level)
2020
}
21-
}
21+
}

src/sorter.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
1+
use crate::radix_key::RadixKeyChecked;
12
use crate::tuner::{Algorithm, Tuner, TuningParams};
23
use crate::utils::*;
3-
use crate::radix_key::RadixKeyChecked;
44
use arbitrary_chunks::ArbitraryChunks;
55
#[cfg(feature = "multi-threaded")]
66
use rayon::current_num_threads;

src/sorts/comparative_sort.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,9 +21,9 @@
2121
//! small inputs. However for those very small inputs it provides a significant speed-up due to
2222
//! having essentially no overhead (from count arrays, buffers etc.) compared to a radix sort.
2323
24+
use crate::radix_key::RadixKeyChecked;
2425
use crate::sorter::Sorter;
2526
use std::cmp::Ordering;
26-
use crate::radix_key::RadixKeyChecked;
2727

2828
impl<'a> Sorter<'a> {
2929
pub(crate) fn comparative_sort<T>(&self, bucket: &mut [T], start_level: usize)

src/sorts/mt_lsb_sort.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,9 +28,9 @@
2828
//!
2929
//! This variant uses the same algorithm as `mt_lsb_sort` but uses it in msb-first order.
3030
31+
use crate::radix_key::RadixKeyChecked;
3132
use crate::sorter::Sorter;
3233
use crate::utils::*;
33-
use crate::radix_key::RadixKeyChecked;
3434
use arbitrary_chunks::ArbitraryChunks;
3535
use rayon::prelude::*;
3636

src/sorts/out_of_place_sort.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,8 +43,8 @@
4343
//! * single-threaded
4444
//! * lsb-first
4545
46-
use crate::utils::*;
4746
use crate::radix_key::RadixKeyChecked;
47+
use crate::utils::*;
4848

4949
#[inline]
5050
pub fn out_of_place_sort<T>(

src/sorts/recombinating_sort.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,10 +22,10 @@
2222
//! constraints. As this is an out-of-place algorithm, you need 2n memory relative to the input for
2323
//! this sort, and eventually the extra allocation and freeing required eats away at the performance.
2424
25+
use crate::radix_key::RadixKeyChecked;
2526
use crate::sorter::Sorter;
2627
use crate::sorts::out_of_place_sort::out_of_place_sort;
2728
use crate::utils::*;
28-
use crate::radix_key::RadixKeyChecked;
2929
use arbitrary_chunks::ArbitraryChunks;
3030
use rayon::prelude::*;
3131

src/sorts/regions_sort.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,10 +38,10 @@
3838
//! This may not be entirely the same as the algorithm described by the research paper. Some steps
3939
//! did not seem to provide any value, and have been omitted for performance reasons.
4040
41+
use crate::radix_key::RadixKeyChecked;
4142
use crate::sorter::Sorter;
4243
use crate::sorts::ska_sort::ska_sort;
4344
use crate::utils::*;
44-
use crate::radix_key::RadixKeyChecked;
4545
use partition::partition_index;
4646
use rayon::current_num_threads;
4747
use rayon::prelude::*;

src/sorts/scanning_sort.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,9 +33,9 @@
3333
//! overhead of the thread-local stores and mutexes prevents it from being fast for smaller inputs
3434
//! however, so it should not be used in all situations.
3535
36+
use crate::radix_key::RadixKeyChecked;
3637
use crate::sorter::Sorter;
3738
use crate::utils::*;
38-
use crate::radix_key::RadixKeyChecked;
3939
use arbitrary_chunks::ArbitraryChunks;
4040
use partition::partition_index;
4141
use rayon::current_num_threads;

src/sorts/ska_sort.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,9 +20,9 @@
2020
//! This is generally slower than `lsb_sort` for smaller types T or smaller input arrays. For larger
2121
//! types or inputs, the memory efficiency of this algorithm can make it faster than `lsb_sort`.
2222
23+
use crate::radix_key::RadixKeyChecked;
2324
use crate::sorter::Sorter;
2425
use crate::utils::*;
25-
use crate::radix_key::RadixKeyChecked;
2626
use partition::partition_index;
2727

2828
pub fn ska_sort<T>(

0 commit comments

Comments
 (0)