| 1 | use stdrust-analyzer cargo std https://github.com/rust-lang/rust/library/std crate/::iorust-analyzer cargo std https://github.com/rust-lang/rust/library/std io/::{selfrust-analyzer cargo std https://github.com/rust-lang/rust/library/std io/, BufReadrust-analyzer cargo std https://github.com/rust-lang/rust/library/std io/BufRead#}; |
| 2 | |
| 3 | #[cfg(not(tarpaulin_include))] |
| 4 | pub fn parse_ansirust-analyzer cargo git-delta 0.19.2 subcommands/parse_ansi/parse_ansi().() -> stdrust-analyzer cargo std https://github.com/rust-lang/rust/library/std crate/::iorust-analyzer cargo std https://github.com/rust-lang/rust/library/std io/::Resultrust-analyzer cargo std https://github.com/rust-lang/rust/library/std io/error/Result#<()> { |
| 5 | use craterust-analyzer cargo git-delta 0.19.2 crate/::ansirust-analyzer cargo git-delta 0.19.2 ansi/; |
| 6 | |
| 7 | for line in iorust-analyzer cargo std https://github.com/rust-lang/rust/library/std io/::stdinrust-analyzer cargo std https://github.com/rust-lang/rust/library/std io/stdio/stdin().().lockrust-analyzer cargo std https://github.com/rust-lang/rust/library/std io/stdio/impl#[Stdin]lock().().linesrust-analyzer cargo std https://github.com/rust-lang/rust/library/std io/BufRead#lines().() { |
| 8 | printlnrust-analyzer cargo std https://github.com/rust-lang/rust/library/std macros/println!!( |
| 9 | "{}", |
| 10 | ansirust-analyzer cargo git-delta 0.19.2 ansi/::explain_ansirust-analyzer cargo git-delta 0.19.2 ansi/explain_ansi().( |
| 11 | &line.unwrap_or_elserust-analyzer cargo core https://github.com/rust-lang/rust/library/core result/impl#[`Result<T, E>`]unwrap_or_else().(|line| panicrust-analyzer cargo std https://github.com/rust-lang/rust/library/std macros/panic!!("Invalid utf-8: {:?}", line)), |
| 12 | true |
| 13 | ) |
| 14 | ); |
| 15 | } |
| 16 | Okrust-analyzer cargo core https://github.com/rust-lang/rust/library/core result/Result#Ok#(()) |
| 17 | } |