Skip to content

Commit

Permalink
feat: move config_fn fn inside test_code fn
Browse files Browse the repository at this point in the history
  • Loading branch information
legendiguess committed Sep 30, 2020
1 parent 8cbd2c0 commit 1970e0f
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions crates/mun_mdbook_test_plugin/src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -57,10 +57,6 @@ fn get_testing_method(code: &str) -> TestingMethod {
testing_method
}

fn config_fn(runtime_builder: RuntimeBuilder) -> RuntimeBuilder {
runtime_builder
}

fn test_code(code: &str) {
let testing_method = get_testing_method(code);

Expand All @@ -72,6 +68,10 @@ fn test_code(code: &str) {
code = code.replace(format!(",{}", testing_command).as_str(), "");
}

fn config_fn(runtime_builder: RuntimeBuilder) -> RuntimeBuilder {
runtime_builder
}

match testing_method {
TestingMethod::CompileFail => {
let previous_hook = panic::take_hook();
Expand Down

0 comments on commit 1970e0f

Please sign in to comment.