Skip to content

Commit

Permalink
clippy
Browse files Browse the repository at this point in the history
  • Loading branch information
albertlockett committed Jul 5, 2024
1 parent f7e88f6 commit afeef76
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 7 deletions.
9 changes: 4 additions & 5 deletions rust/lance-encoding/src/encodings/physical/value.rs
Original file line number Diff line number Diff line change
Expand Up @@ -489,7 +489,7 @@ pub(crate) mod tests {
DataType: ArrowPrimitiveType,
{
fn new(dist: Dist) -> Self {
DistributionArrayGeneratorProvider::<DataType, Dist> {
Self {
distribution: dist,
phantom: Default::default(),
}
Expand All @@ -504,13 +504,12 @@ pub(crate) mod tests {
DataType: ArrowPrimitiveType,
{
fn provide(&self) -> Box<dyn ArrayGenerator> {
let generator = rand_with_distribution::<DataType, Dist>(self.distribution.clone());
generator
rand_with_distribution::<DataType, Dist>(self.distribution.clone())
}

fn copy(&self) -> Box<dyn ArrayGeneratorProvider> {
Box::new(DistributionArrayGeneratorProvider::<DataType, Dist> {
phantom: self.phantom.clone(),
Box::new(Self {
phantom: self.phantom,
distribution: self.distribution.clone(),
})
}
Expand Down
4 changes: 2 additions & 2 deletions rust/lance-encoding/src/testing.rs
Original file line number Diff line number Diff line change
Expand Up @@ -115,9 +115,9 @@ impl ArrayGeneratorProvider for RandomArrayGeneratorProvider {
}

fn copy(&self) -> Box<dyn ArrayGeneratorProvider> {
return Box::new(RandomArrayGeneratorProvider {
Box::new(Self {
field: self.field.clone(),
});
})
}
}

Expand Down

0 comments on commit afeef76

Please sign in to comment.