Skip to content

Commit

Permalink
Simplify map call in iced_wgpu::triangle
Browse files Browse the repository at this point in the history
  • Loading branch information
hecrj committed Sep 20, 2023
1 parent b277625 commit b8ddd15
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion wgpu/src/triangle.rs
Original file line number Diff line number Diff line change
Expand Up @@ -349,7 +349,7 @@ fn multisample_state(
antialiasing: Option<Antialiasing>,
) -> wgpu::MultisampleState {
wgpu::MultisampleState {
count: antialiasing.map(|a| a.sample_count()).unwrap_or(1),
count: antialiasing.map(Antialiasing::sample_count).unwrap_or(1),
mask: !0,
alpha_to_coverage_enabled: false,
}
Expand Down

0 comments on commit b8ddd15

Please sign in to comment.