From eefcfd02dc215946c3f160617dd0a7a0c968e13d Mon Sep 17 00:00:00 2001 From: Matthias Beyer Date: Sun, 3 Sep 2017 22:01:40 +0200 Subject: [PATCH] Allow generated fns from macros to be unused --- lib/etc/libimagutil/src/testing.rs | 3 +++ 1 file changed, 3 insertions(+) diff --git a/lib/etc/libimagutil/src/testing.rs b/lib/etc/libimagutil/src/testing.rs index c176d25e..823e3f60 100644 --- a/lib/etc/libimagutil/src/testing.rs +++ b/lib/etc/libimagutil/src/testing.rs @@ -95,11 +95,13 @@ macro_rules! make_mock_app { } } + #[allow(unused)] pub fn generate_minimal_test_config() -> Option { ::toml::de::from_str("[store]\nimplicit-create=true") .map(Configuration::with_value) .ok() } + #[allow(unused)] pub fn generate_test_runtime<'a>(mut args: Vec<&'static str>) -> Result, RuntimeError> { let mut cli_args = vec![$appname, "--rtp", "/tmp"]; @@ -109,6 +111,7 @@ macro_rules! make_mock_app { Runtime::with_configuration(cli_app, generate_minimal_test_config()) } + #[allow(unused)] pub fn reset_test_runtime<'a>(mut args: Vec<&'static str>, old_runtime: Runtime) -> Result, RuntimeError> {