Unnamed repository; edit this file 'description' to name the repository.
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.
Michael Davis 2022-10-21
parent 313579d · commit 66238e8
-rw-r--r--helix-term/tests/test/helpers.rs2
1 files changed, 2 insertions, 0 deletions
diff --git a/helix-term/tests/test/helpers.rs b/helix-term/tests/test/helpers.rs
index e8bd6c35..2c5043d6 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