From 9e139e6ca789d48ebcc1f3f0c14ad957713ec52d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?H=C3=A9ctor=20Ram=C3=B3n=20Jim=C3=A9nez?= Date: Sun, 29 Mar 2020 15:21:43 +0200 Subject: [PATCH] Improve `Antialiasing::sample_count` signature --- wgpu/src/settings.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/wgpu/src/settings.rs b/wgpu/src/settings.rs index f946ce0d..5ee245b6 100644 --- a/wgpu/src/settings.rs +++ b/wgpu/src/settings.rs @@ -45,7 +45,7 @@ pub enum Antialiasing { } impl Antialiasing { - pub(crate) fn sample_count(&self) -> u32 { + pub(crate) fn sample_count(self) -> u32 { match self { Antialiasing::MSAAx2 => 2, Antialiasing::MSAAx4 => 4,