Skip to content

Commit

Permalink
Silence dead_code warning on AppBuilder::with_config
Browse files Browse the repository at this point in the history
This function is not currently used but is likely to be useful in
the future, so this change silences the dead_code warning.
  • Loading branch information
the-mikedavis authored and Shekhinah Memmel committed Dec 11, 2022
1 parent 1140bb7 commit 7932980
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions helix-term/tests/test/helpers.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 7932980

Please sign in to comment.