Skip to content

Commit

Permalink
Address clippy suggestions
Browse files Browse the repository at this point in the history
  • Loading branch information
westonpace committed Jul 26, 2024
1 parent 0414546 commit 5a46d47
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions rust/lance-encoding/src/data.rs
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ impl DataBlockExt for Box<dyn DataBlock> {
self.as_any_box()
.downcast::<T>()
.map_err(|_| Error::Internal {
message: format!("Couldn't convert to expected layout"),
message: "Couldn't convert to expected layout".to_string(),
location: location!(),
})
}
Expand Down Expand Up @@ -225,10 +225,10 @@ impl DataBlock for StructDataBlock {
Ok(unsafe { builder.build_unchecked() })
}
} else {
return Err(Error::Internal {
Err(Error::Internal {
message: format!("Expected Struct, got {:?}", data_type),
location: location!(),
});
})
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ impl PrimitivePageDecoder for FixedListDecoder {
let child_data = self.items_decoder.decode(rows_to_skip, num_child_rows)?;
let mut child_data = child_data.try_into_layout::<FixedWidthDataBlock>()?;
child_data.num_values = num_rows;
child_data.bits_per_value = child_data.bits_per_value * self.dimension;
child_data.bits_per_value *= self.dimension;
Ok(child_data)
}
}
Expand Down

0 comments on commit 5a46d47

Please sign in to comment.