Skip to content

Commit 5f89a3c

Browse files
committed
Works
1 parent cdde87b commit 5f89a3c

File tree

10 files changed

+581
-2
lines changed

10 files changed

+581
-2
lines changed

Cargo.lock

Lines changed: 51 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Cargo.toml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,7 @@ annotate-snippets = { version = "0.11.2" }
3030
levenshtein = "1.0.5"
3131
spanned = "0.2.1"
3232
supports-color = "3.0"
33+
anstream = { version = "0.6", default-features = false, features = ["auto"]}
3334

3435
[dependencies.regex]
3536
version = "1.5.5"

src/diff.rs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
1-
use owo_colors::OwoColorize;
1+
use owo_colors::OwoColorize as _;
22
use prettydiff::{basic::DiffOp, basic::DiffOp::*, diff_lines, diff_words};
3+
use anstream::{print, println};
34

45
/// How many lines of context are displayed around the actual diffs
56
const CONTEXT: usize = 2;

src/status_emitter.rs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,9 @@ use annotate_snippets::{Renderer, Snippet};
44
use bstr::ByteSlice;
55
use crossbeam_channel::{Sender, TryRecvError};
66
use indicatif::{MultiProgress, ProgressBar, ProgressDrawTarget, ProgressStyle};
7-
use owo_colors::OwoColorize;
7+
use owo_colors::OwoColorize as _;
88
use spanned::Span;
9+
use anstream::{print, println};
910

1011
use crate::{
1112
diagnostics::{Level, Message},

tests/integrations/basic-fail-mode/Cargo.lock

Lines changed: 124 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)