mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-10-02 14:51:48 +00:00
Avoid clone when constructing runnable label.
This commit is contained in:
parent
a55e8bf09c
commit
333bedd70f
2 changed files with 3 additions and 3 deletions
|
@ -79,7 +79,7 @@ impl RunnableKind {
|
|||
|
||||
impl Runnable {
|
||||
// test package::module::testname
|
||||
pub fn label(&self, target: Option<String>) -> String {
|
||||
pub fn label(&self, target: Option<&str>) -> String {
|
||||
match &self.kind {
|
||||
RunnableKind::Test { test_id, .. } => format!("test {test_id}"),
|
||||
RunnableKind::TestMod { path } => format!("test-mod {path}"),
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue