File tree 1 file changed +11
-4
lines changed
crates/cargo-codspeed/src 1 file changed +11
-4
lines changed Original file line number Diff line number Diff line change @@ -43,10 +43,16 @@ impl BuildOptions<'_> {
43
43
44
44
let mut built_benches = Vec :: new ( ) ;
45
45
for message in Message :: parse_stream ( reader) {
46
- if let Message :: CompilerArtifact ( artifact) =
47
- message. expect ( "Failed to parse compiler message" )
48
- {
49
- if artifact. target . is_kind ( TargetKind :: Bench ) {
46
+ match message. expect ( "Failed to parse message" ) {
47
+ Message :: CompilerMessage ( msg) => {
48
+ println ! ( "{}" , & msg. message) ;
49
+ }
50
+ Message :: TextLine ( line) => {
51
+ println ! ( "{}" , line) ;
52
+ }
53
+ Message :: CompilerArtifact ( artifact)
54
+ if artifact. target . is_kind ( TargetKind :: Bench ) =>
55
+ {
50
56
let package = workspace_packages
51
57
. iter ( )
52
58
. find ( |p| p. id == artifact. package_id )
@@ -71,6 +77,7 @@ impl BuildOptions<'_> {
71
77
} ) ;
72
78
}
73
79
}
80
+ _ => { }
74
81
}
75
82
}
76
83
You can’t perform that action at this time.
0 commit comments