From 3e06c1c0e2006aa1c3ab4ac71bae1310783b4d77 Mon Sep 17 00:00:00 2001 From: Bryan Bell Date: Fri, 23 Jan 2015 00:15:18 -0800 Subject: [PATCH] Remove deadcode warning in BuilderAttribs In src/lib.rs remove the deadcode warning about the 'headless' builder attribute. Headless is /actually/ set to false or true depending on if HeadlessRendererBuilder is used. --- src/lib.rs | 1 + 1 file changed, 1 insertion(+) diff --git a/src/lib.rs b/src/lib.rs index 436c0cff..f084296c 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -154,6 +154,7 @@ pub struct WindowBuilder<'a> { /// Attributes struct BuilderAttribs<'a> { + #[allow(dead_code)] headless: bool, strict: bool, sharing: Option<&'a winimpl::Window>,