From cb2b6fb1536e05ffc1add6aadf460cd80f262f03 Mon Sep 17 00:00:00 2001 From: Robert Straw Date: Thu, 20 Mar 2014 08:58:08 -0500 Subject: [PATCH] Suppress warnings about visible private types --- src/codegen/branchify.rs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/codegen/branchify.rs b/src/codegen/branchify.rs index c92fafdb..0300d60c 100644 --- a/src/codegen/branchify.rs +++ b/src/codegen/branchify.rs @@ -21,6 +21,7 @@ impl ParseBranch { } } +#[allow(visible_private_types)] pub fn branchify(options: &[(&str, &str)], case_sensitive: bool) -> Vec { let mut root = ParseBranch::new(); @@ -80,6 +81,7 @@ macro_rules! branchify( /// :param unknown: the expression to call for an unknown value; in this string, ``{}`` will be /// replaced with an expression (literal or non-literal) evaluating to a ``~str`` (it is /// ``{}`` only, not arbitrary format strings) +#[allow(visible_private_types)] pub fn generate_branchified_method( writer: &mut BufferedWriter, branches: &[ParseBranch],