File tree Expand file tree Collapse file tree 1 file changed +0
-18
lines changed Expand file tree Collapse file tree 1 file changed +0
-18
lines changed Original file line number Diff line number Diff line change @@ -340,13 +340,6 @@ impl Shell {
340
340
}
341
341
}
342
342
343
- /// Write a styled fragment
344
- ///
345
- /// Caller is responsible for deciding whether [`Shell::verbosity`] is affects output.
346
- pub fn write_stdout ( & mut self , fragment : impl fmt:: Display , color : & Style ) -> CargoResult < ( ) > {
347
- self . output . write_stdout ( fragment, color)
348
- }
349
-
350
343
/// Prints a message to stderr and translates ANSI escape code into console colors.
351
344
pub fn print_ansi_stderr ( & mut self , message : & [ u8 ] ) -> CargoResult < ( ) > {
352
345
if self . needs_clear {
@@ -409,17 +402,6 @@ impl ShellOut {
409
402
Ok ( ( ) )
410
403
}
411
404
412
- /// Write a styled fragment
413
- fn write_stdout ( & mut self , fragment : impl fmt:: Display , style : & Style ) -> CargoResult < ( ) > {
414
- let style = style. render ( ) ;
415
- let reset = anstyle:: Reset . render ( ) ;
416
-
417
- let mut buffer = Vec :: new ( ) ;
418
- write ! ( buffer, "{style}{}{reset}" , fragment) ?;
419
- self . stdout ( ) . write_all ( & buffer) ?;
420
- Ok ( ( ) )
421
- }
422
-
423
405
/// Gets stdout as a `io::Write`.
424
406
fn stdout ( & mut self ) -> & mut dyn Write {
425
407
match * self {
You can’t perform that action at this time.
0 commit comments