Skip to content

Commit 15c497b

Browse files
committed
compiletest: retire opt_str2
We either have the value of a flag specified, or we don't. Use `Option<...>` to represent that -- don't invent a new "(none)" sentinel value...
1 parent da96ee6 commit 15c497b

File tree

1 file changed

+0
-7
lines changed
  • src/tools/compiletest/src

1 file changed

+0
-7
lines changed

src/tools/compiletest/src/lib.rs

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -500,13 +500,6 @@ fn parse_config(args: Vec<String>) -> Config {
500500
}
501501
}
502502

503-
fn opt_str2(maybestr: Option<String>) -> String {
504-
match maybestr {
505-
None => "(none)".to_owned(),
506-
Some(s) => s,
507-
}
508-
}
509-
510503
/// Called by `main` after the config has been parsed.
511504
fn run_tests(config: Arc<Config>) {
512505
debug!(?config, "run_tests");

0 commit comments

Comments
 (0)