Use &'static str rather than Cow<str> for pass names.

This commit is contained in:
Dan Gohman
2018-06-04 16:17:02 -07:00
parent 6c003d68cd
commit ae8fc69406
14 changed files with 27 additions and 27 deletions

View File

@@ -28,8 +28,8 @@ pub fn subtest(parsed: &TestCommand) -> Result<Box<SubTest>> {
}
impl SubTest for TestVerifier {
fn name(&self) -> Cow<str> {
Cow::from("verifier")
fn name(&self) -> &'static str {
"verifier"
}
fn needs_verifier(&self) -> bool {