Skip to content

Commit

Permalink
use flatten instead of filter_map
Browse files Browse the repository at this point in the history
  • Loading branch information
blackshibe committed Jan 3, 2024
1 parent 61d47fc commit a1497bc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion rbx_binary/src/text_deserializer.rs
Original file line number Diff line number Diff line change
Expand Up @@ -695,7 +695,7 @@ impl DecodedValues {
Some(CFrame::new(Vector3::new(x, y, z), rotation))
}
})
.filter_map(|value| value)
.flatten()
.collect();

Some(DecodedValues::CFrame(values))
Expand Down

0 comments on commit a1497bc

Please sign in to comment.