File tree Expand file tree Collapse file tree 1 file changed +5
-5
lines changed
crates/proc-macro-srv/proc-macro-test Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -109,11 +109,11 @@ fn main() {
109109 let mut artifact_path = None ;
110110 for message in Message :: parse_stream ( output. stdout . as_slice ( ) ) {
111111 if let Message :: CompilerArtifact ( artifact) = message. unwrap ( ) {
112- if artifact. target . kind . contains ( & "proc-macro" . to_string ( ) ) {
113- if artifact. package_id . repr . starts_with ( & repr) || artifact . package_id . repr == pkgid
114- {
115- artifact_path = Some ( PathBuf :: from ( & artifact . filenames [ 0 ] ) ) ;
116- }
112+ if artifact. target . kind . contains ( & "proc-macro" . to_string ( ) )
113+ && ( artifact. package_id . repr . starts_with ( & repr)
114+ || artifact . package_id . repr == pkgid )
115+ {
116+ artifact_path = Some ( PathBuf :: from ( & artifact . filenames [ 0 ] ) ) ;
117117 }
118118 }
119119 }
You can’t perform that action at this time.
0 commit comments