viiccwen commented on code in PR #1242:
URL: https://github.com/apache/mahout/pull/1242#discussion_r3055111967
##########
qdp/qdp-core/tests/common/mod.rs:
##########
@@ -45,11 +45,12 @@ pub fn create_test_data_f32(size: usize) -> Vec<f32> {
/// Writes a FixedSizeList<Float64, sample_size> Parquet file for streaming
encoder tests.
/// Each `sample_size` consecutive values in `data` form one row.
#[allow(dead_code)]
+#[allow(clippy::manual_is_multiple_of)]
pub fn write_fixed_size_list_parquet(path: &str, data: &[f64], sample_size:
usize) {
assert!(sample_size > 0, "sample_size must be > 0");
assert!(
- data.len().is_multiple_of(sample_size),
- "data.len() ({}) must be a multiple of sample_size ({})",
+ data.len() % sample_size == 0,
+ "Data length ({}) must be a multiple of sample size ({})",
data.len(),
sample_size
);
Review Comment:
why made this change? pre-commit?
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]