From 66238e855666f979306dc8698aeb0f35aaa84776 Mon Sep 17 00:00:00 2001 From: Michael Davis Date: Thu, 20 Oct 2022 14:27:29 -0500 Subject: [PATCH] Silence dead_code warning on AppBuilder::with_config This function is not currently used but is likely to be useful in the future, so this change silences the dead_code warning. --- helix-term/tests/test/helpers.rs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/helix-term/tests/test/helpers.rs b/helix-term/tests/test/helpers.rs index e8bd6c35e..2c5043d68 100644 --- a/helix-term/tests/test/helpers.rs +++ b/helix-term/tests/test/helpers.rs @@ -286,6 +286,8 @@ impl AppBuilder { self } + // Remove this attribute once `with_config` is used in a test: + #[allow(dead_code)] pub fn with_config(mut self, config: Config) -> Self { self.config = config; self