Skip to content

Offline, privacy-first grammar checker. Fast, open-source, Rust-powered

deps(cli): bump ariadne from 0.4.1 to 0.6.0 (#2577)

Steve Kurch56530f0dd495
diff --git a/Cargo.lock b/Cargo.lock
index 149553ba5..35ec929b0 100644
--- a/Cargo.lock
+++ b/Cargo.lock
@@ -139,11 +139,11 @@ dependencies = [
[[package]]
name = "ariadne"
-version = "0.4.1"
+version = "0.6.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "44055e597c674aef7cb903b2b9f6e4cba1277ed0d2d61dae7cd52d7ffa81f8e2"
+checksum = "8454c8a44ce2cb9cc7e7fae67fc6128465b343b92c6631e94beca3c8d1524ea5"
dependencies = [
- "unicode-width 0.1.14",
+ "unicode-width",
"yansi",
]
@@ -890,7 +890,7 @@ checksum = "fe6d2e5af09e8c8ad56c969f2157a3d4238cebc7c55f0a517728c38f7b200f81"
dependencies = [
"serde",
"termcolor",
- "unicode-width 0.2.2",
+ "unicode-width",
]
[[package]]
@@ -2512,7 +2512,7 @@ version = "0.2.23"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "cba6ae63eb948698e300f645f87c70f76630d505f23b8907cf1e193ee85048c1"
dependencies = [
- "unicode-width 0.2.2",
+ "unicode-width",
]
[[package]]
@@ -2793,7 +2793,7 @@ dependencies = [
"trie-rs",
"unicode-blocks",
"unicode-script",
- "unicode-width 0.2.2",
+ "unicode-width",
]
[[package]]
@@ -6225,12 +6225,6 @@ version = "1.12.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "f6ccf251212114b54433ec949fd6a7841275f9ada20dddd2f29e9ceea4501493"
-[[package]]
-name = "unicode-width"
-version = "0.1.14"
-source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "7dd6e30e90baa6f72411720665d41d89b9a3d039dc45b8faea1ddd07f617f6af"
-
[[package]]
name = "unicode-width"
version = "0.2.2"
diff --git a/harper-cli/Cargo.toml b/harper-cli/Cargo.toml
index 74e23c3b4..fcc12a585 100644
--- a/harper-cli/Cargo.toml
+++ b/harper-cli/Cargo.toml
@@ -7,7 +7,7 @@ repository = "https://github.com/automattic/harper"
[dependencies]
anyhow = "1.0.100"
-ariadne = "0.4.1"
+ariadne = "0.6.0"
clap = { version = "4.5.54", features = ["derive", "std", "string"], default-features = false }
harper-stats = { path = "../harper-stats", version = "1.0.0" }
dirs = "6.0.0"
diff --git a/harper-cli/src/annotate.rs b/harper-cli/src/annotate.rs
index b174eebca..fe8fc69c2 100644
--- a/harper-cli/src/annotate.rs
+++ b/harper-cli/src/annotate.rs
@@ -96,8 +96,7 @@ impl AnnotationType {
) -> Report<'input_id, (&'input_id str, Range<usize>)> {
Report::build(
ReportKind::Custom(report_title, Color::Blue),
- input_identifier,
- 0,
+ (input_identifier, 0..0),
)
.with_labels(Annotation::iter_labels_from_document(
*self,
diff --git a/harper-cli/src/lint.rs b/harper-cli/src/lint.rs
index c760e4c10..f4e171118 100644
--- a/harper-cli/src/lint.rs
+++ b/harper-cli/src/lint.rs
@@ -470,7 +470,7 @@ fn single_input_report(
let input_identifier = input.input.get_identifier();
if lint_count_after != 0 {
- let mut report_builder = Report::build(ReportKind::Advice, &input_identifier, 0);
+ let mut report_builder = Report::build(ReportKind::Advice, (&input_identifier, 0..0));
for (rule_name, lints) in named_lints {
for lint in lints {
diff --git a/harper-cli/src/main.rs b/harper-cli/src/main.rs
index 68cd2ce9d..1f4c108a9 100644
--- a/harper-cli/src/main.rs
+++ b/harper-cli/src/main.rs
@@ -263,8 +263,7 @@ fn main() -> anyhow::Result<()> {
let mut report_builder = Report::build(
ReportKind::Custom("Spans", primary_color),
- &input_identifier,
- 0,
+ (&input_identifier, 0..0),
);
let mut color = primary_color;