From e5b43eac6a47754657bda97680c366aa9a103a68 Mon Sep 17 00:00:00 2001 From: Fraser Hutchison Date: Thu, 21 May 2015 18:09:19 +0100 Subject: [PATCH] Suppressed lint warnings on dead-code and missing-docs for generated files. --- src/codegen.rs | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/src/codegen.rs b/src/codegen.rs index 4227d60..03f43ad 100644 --- a/src/codegen.rs +++ b/src/codegen.rs @@ -235,7 +235,7 @@ fn populate_scope_map(node_map : &collections::hash_map::HashMap FormattedText { Branch(vec!( - Line("#![allow(unused_imports)]".to_string()), + Line("#![allow(dead_code, missing_docs, unused_imports)]".to_string()), Line("use capnp::capability::{FromClientHook, FromTypelessPipeline};".to_string()), Line("use capnp::{text, data, Result};".to_string()), Line("use capnp::private::layout;".to_string()), @@ -1324,8 +1324,7 @@ fn generate_node(node_map : &collections::hash_map::HashMap