Use &'static str rather than Cow<str> for pass names.
This commit is contained in:
@@ -25,8 +25,8 @@ pub fn subtest(parsed: &TestCommand) -> Result<Box<SubTest>> {
|
||||
}
|
||||
|
||||
impl SubTest for TestSimpleGVN {
|
||||
fn name(&self) -> Cow<str> {
|
||||
Cow::from("simple-gvn")
|
||||
fn name(&self) -> &'static str {
|
||||
"simple-gvn"
|
||||
}
|
||||
|
||||
fn is_mutating(&self) -> bool {
|
||||
|
||||
Reference in New Issue
Block a user