Use &'static str rather than Cow<str> for pass names.
This commit is contained in:
@@ -36,8 +36,8 @@ pub fn subtest(parsed: &TestCommand) -> Result<Box<SubTest>> {
|
||||
}
|
||||
|
||||
impl SubTest for TestDomtree {
|
||||
fn name(&self) -> Cow<str> {
|
||||
Cow::from("domtree")
|
||||
fn name(&self) -> &'static str {
|
||||
"domtree"
|
||||
}
|
||||
|
||||
// Extract our own dominator tree from
|
||||
|
||||
Reference in New Issue
Block a user