From e7e9693acf5cf6f4aba1f72d2412df3fcfecd499 Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Mon, 13 Mar 2023 14:37:25 +0100 Subject: [PATCH] Bump ariadne from 0.1.5 to 0.2.0 (#244) Bumps [ariadne](https://github.com/zesterer/ariadne) from 0.1.5 to 0.2.0. - [Release notes](https://github.com/zesterer/ariadne/releases) - [Commits](https://github.com/zesterer/ariadne/commits) --- updated-dependencies: - dependency-name: ariadne dependency-type: direct:production update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: Dominic --- Cargo.lock | 11 +++++++++-- Cargo.toml | 2 +- src/diagnostic.rs | 2 +- tests/fail/syntax-error/stderr.log | 4 ++-- tests/pass/doc-attr-warning/stderr.log | 8 ++++---- tests/pass/doc-cfg-attr-warning/stderr.log | 8 ++++---- tests/pass/wildcard-import/stderr.log | 4 ++-- 7 files changed, 23 insertions(+), 16 deletions(-) diff --git a/Cargo.lock b/Cargo.lock index b7903b2..0c94b18 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -19,10 +19,11 @@ checksum = "2cb2f989d18dd141ab8ae82f64d1a8cdd37e0840f73a406896cf5e99502fab61" [[package]] name = "ariadne" -version = "0.1.5" +version = "0.2.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "f1cb2a2046bea8ce5e875551f5772024882de0b540c7f93dfc5d6cf1ca8b030c" +checksum = "367fd0ad87307588d087544707bc5fbf4805ded96c7db922b70d368fa1cb5702" dependencies = [ + "unicode-width", "yansi", ] @@ -844,6 +845,12 @@ dependencies = [ "tinyvec", ] +[[package]] +name = "unicode-width" +version = "0.1.10" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "c0edd1e5b14653f783770bce4a4dabb4a5108a5370a5f5d8cfe8710c361f6c8b" + [[package]] name = "url" version = "2.3.1" diff --git a/Cargo.toml b/Cargo.toml index 7008a73..a6ac020 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -20,7 +20,7 @@ harness = false [dependencies] anyhow = "1.0" -ariadne = "0.1.5" +ariadne = "0.2" base64 = "0.21" blake3 = "1.3" cargo_metadata = "0.15.1" diff --git a/src/diagnostic.rs b/src/diagnostic.rs index 7cd1f6b..fa8bc52 100644 --- a/src/diagnostic.rs +++ b/src/diagnostic.rs @@ -6,7 +6,7 @@ pub type Span = Range; pub struct Diagnostic { filename: String, code: String, - reports: Vec>, + reports: Vec>, fail: bool } diff --git a/tests/fail/syntax-error/stderr.log b/tests/fail/syntax-error/stderr.log index 4e2c8e5..54dcb2e 100644 --- a/tests/fail/syntax-error/stderr.log +++ b/tests/fail/syntax-error/stderr.log @@ -2,6 +2,6 @@ Error: Syntax Error ╭─[lib.rs:1:5] │ 1 │ main() {} - · ┬ - · ╰── expected `!` + │ ┬ + │ ╰── expected `!` ───╯ diff --git a/tests/pass/doc-attr-warning/stderr.log b/tests/pass/doc-attr-warning/stderr.log index 649b55d..7507713 100644 --- a/tests/pass/doc-attr-warning/stderr.log +++ b/tests/pass/doc-attr-warning/stderr.log @@ -2,8 +2,8 @@ Warning: Macro not expanded ╭─[lib.rs:1:10] │ 1 │ #![doc = concat!("Hello ", "World!")] - · ─────────────┬───────────── - · ╰─────────────── This macro was not expanded - · - · Help: You can use `--expand-macros` on a nightly Rust toolchain to expand macros. + │ ─────────────┬───────────── + │ ╰─────────────── This macro was not expanded + │ + │ Help: You can use `--expand-macros` on a nightly Rust toolchain to expand macros. ───╯ diff --git a/tests/pass/doc-cfg-attr-warning/stderr.log b/tests/pass/doc-cfg-attr-warning/stderr.log index bb5b428..ee63545 100644 --- a/tests/pass/doc-cfg-attr-warning/stderr.log +++ b/tests/pass/doc-cfg-attr-warning/stderr.log @@ -2,8 +2,8 @@ Warning: Macro not expanded ╭─[lib.rs:1:1] │ 1 │ #![cfg_attr(all(), doc = "Hello World!")] - · ────────────────────┬──────────────────── - · ╰────────────────────── This macro was not expanded - · - · Help: You can use `--expand-macros` on a nightly Rust toolchain to expand macros. + │ ────────────────────┬──────────────────── + │ ╰────────────────────── This macro was not expanded + │ + │ Help: You can use `--expand-macros` on a nightly Rust toolchain to expand macros. ───╯ diff --git a/tests/pass/wildcard-import/stderr.log b/tests/pass/wildcard-import/stderr.log index 2ef3770..cc86383 100644 --- a/tests/pass/wildcard-import/stderr.log +++ b/tests/pass/wildcard-import/stderr.log @@ -2,6 +2,6 @@ Warning: Glob use statements can lead to incomplete link generation. ╭─[lib.rs:4:23] │ 4 │ use std::io::prelude::*; - · ┬ - · ╰── All items imported through this glob use will not be used for link generation + │ ┬ + │ ╰── All items imported through this glob use will not be used for link generation ───╯