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 @@ -347,13 +347,6 @@ impl Shell {
347
347
self . output . write_stdout ( fragment, color)
348
348
}
349
349
350
- /// Write a styled fragment
351
- ///
352
- /// Caller is responsible for deciding whether [`Shell::verbosity`] is affects output.
353
- pub fn write_stderr ( & mut self , fragment : impl fmt:: Display , color : & Style ) -> CargoResult < ( ) > {
354
- self . output . write_stderr ( fragment, color)
355
- }
356
-
357
350
/// Prints a message to stderr and translates ANSI escape code into console colors.
358
351
pub fn print_ansi_stderr ( & mut self , message : & [ u8 ] ) -> CargoResult < ( ) > {
359
352
if self . needs_clear {
@@ -427,17 +420,6 @@ impl ShellOut {
427
420
Ok ( ( ) )
428
421
}
429
422
430
- /// Write a styled fragment
431
- fn write_stderr ( & mut self , fragment : impl fmt:: Display , style : & Style ) -> CargoResult < ( ) > {
432
- let style = style. render ( ) ;
433
- let reset = anstyle:: Reset . render ( ) ;
434
-
435
- let mut buffer = Vec :: new ( ) ;
436
- write ! ( buffer, "{style}{}{reset}" , fragment) ?;
437
- self . stderr ( ) . write_all ( & buffer) ?;
438
- Ok ( ( ) )
439
- }
440
-
441
423
/// Gets stdout as a `io::Write`.
442
424
fn stdout ( & mut self ) -> & mut dyn Write {
443
425
match * self {
You can’t perform that action at this time.
0 commit comments