File tree Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -43,8 +43,8 @@ pub enum TestId {
43
43
Path ( String ) ,
44
44
}
45
45
46
- impl AsRef < str > for TestId {
47
- fn as_ref ( & self ) -> & str {
46
+ impl TestId {
47
+ pub fn as_str ( & self ) -> & str {
48
48
match self {
49
49
Self :: Name ( n) => n,
50
50
Self :: Path ( p) => p,
@@ -54,7 +54,7 @@ impl AsRef<str> for TestId {
54
54
55
55
impl fmt:: Display for TestId {
56
56
fn fmt ( & self , f : & mut fmt:: Formatter < ' _ > ) -> fmt:: Result {
57
- f. write_str ( self . as_ref ( ) )
57
+ f. write_str ( self . as_str ( ) )
58
58
}
59
59
}
60
60
Original file line number Diff line number Diff line change @@ -91,7 +91,7 @@ impl ProjectJsonTargetSpec {
91
91
runnable. args . iter_mut ( ) . for_each ( |arg| {
92
92
* arg = arg
93
93
. replace ( "{label}" , & self . label )
94
- . replace ( "{test_id}" , test_id. as_ref ( ) ) ;
94
+ . replace ( "{test_id}" , test_id. as_str ( ) ) ;
95
95
} ) ;
96
96
97
97
runnable
You can’t perform that action at this time.
0 commit comments