@@ -137,8 +137,8 @@ impl LanguagePlugin for MavenPlugin {
137137 return Err ( JavaError :: FailedCommand (
138138 "mvn" . to_string ( ) ,
139139 output. status ,
140- output. stdout ,
141- output. stderr ,
140+ String :: from_utf8_lossy ( & output. stdout ) . into_owned ( ) ,
141+ String :: from_utf8_lossy ( & output. stderr ) . into_owned ( ) ,
142142 )
143143 . into ( ) ) ;
144144 }
@@ -186,8 +186,8 @@ impl JavaPlugin for MavenPlugin {
186186 return Err ( JavaError :: FailedCommand (
187187 mvn_path. as_os_str ( ) . to_string_lossy ( ) . to_string ( ) ,
188188 output. status ,
189- output. stdout ,
190- output. stderr ,
189+ String :: from_utf8_lossy ( & output. stdout ) . into_owned ( ) ,
190+ String :: from_utf8_lossy ( & output. stderr ) . into_owned ( ) ,
191191 ) ) ;
192192 }
193193
@@ -229,8 +229,8 @@ impl JavaPlugin for MavenPlugin {
229229 return Err ( JavaError :: FailedCommand (
230230 mvn_path. as_os_str ( ) . to_string_lossy ( ) . to_string ( ) ,
231231 output. status ,
232- output. stdout ,
233- output. stderr ,
232+ String :: from_utf8_lossy ( & output. stdout ) . into_owned ( ) ,
233+ String :: from_utf8_lossy ( & output. stderr ) . into_owned ( ) ,
234234 ) ) ;
235235 }
236236
@@ -264,8 +264,8 @@ impl JavaPlugin for MavenPlugin {
264264 return Err ( JavaError :: FailedCommand (
265265 mvn_path. as_os_str ( ) . to_string_lossy ( ) . to_string ( ) ,
266266 output. status ,
267- output. stdout ,
268- output. stderr ,
267+ String :: from_utf8_lossy ( & output. stdout ) . into_owned ( ) ,
268+ String :: from_utf8_lossy ( & output. stderr ) . into_owned ( ) ,
269269 ) ) ;
270270 }
271271
0 commit comments