Skip to content

Commit

Permalink
Remove unnecessary reference
Browse files Browse the repository at this point in the history
  • Loading branch information
jasonasher committed Jun 2, 2024
1 parent a97c5ed commit 2d39b86
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/data_containers/vector_heterogeneous_container.rs
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ impl VecDataContainer {
pub fn get_value<K: PropertyWithDefault>(&self, index: usize) -> K::Value {
match self.data.get(&TypeId::of::<K>()) {
Some(boxed_vec) => {
let vec = &boxed_vec.downcast_ref::<Vec<K::Value>>().unwrap();
let vec = boxed_vec.downcast_ref::<Vec<K::Value>>().unwrap();
if index >= vec.len() {
K::get_default()
} else {
Expand Down

0 comments on commit 2d39b86

Please sign in to comment.