aboutsummaryrefslogtreecommitdiff
path: root/helix-term
diff options
context:
space:
mode:
authorMichael Davis2022-10-20 19:27:29 +0000
committerBlaž Hrastnik2022-10-20 23:43:15 +0000
commit66238e855666f979306dc8698aeb0f35aaa84776 (patch)
tree7b783b5041ecd0f529ee42cd3f431bcf05c790c4 /helix-term
parent313579d27ce6ad55b5c2410856e6aa62a7778320 (diff)
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.
Diffstat (limited to 'helix-term')
-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