use the fancy

This commit is contained in:
JT 2021-09-21 16:10:29 +12:00
parent 4841d62d76
commit 3c18cac134
6 changed files with 8 additions and 10 deletions

8
Cargo.lock generated
View File

@ -296,9 +296,8 @@ checksum = "308cc39be01b73d0d18f82a0e7b2a3df85245f84af96fdddc5d202d27e47b86a"
[[package]] [[package]]
name = "miette" name = "miette"
version = "3.0.0-alpha.0" version = "3.0.1-alpha.0"
source = "registry+https://github.com/rust-lang/crates.io-index" source = "git+https://github.com/zkat/miette?branch=release/3.0.0#338c885a305035fc21f63e3566131af5befa14b3"
checksum = "043a986fa0bf30fe00f6720e5c298ed1d67fe30ae77659744cbac206e8d2554c"
dependencies = [ dependencies = [
"atty", "atty",
"ci_info", "ci_info",
@ -318,8 +317,7 @@ dependencies = [
[[package]] [[package]]
name = "miette-derive" name = "miette-derive"
version = "3.0.0-alpha.0" version = "3.0.0-alpha.0"
source = "registry+https://github.com/rust-lang/crates.io-index" source = "git+https://github.com/zkat/miette?branch=release/3.0.0#338c885a305035fc21f63e3566131af5befa14b3"
checksum = "db3027fb091be28062da879441b2ab8f43d0013d7cde5fcc3a48fb9da7e22a01"
dependencies = [ dependencies = [
"proc-macro2", "proc-macro2",
"quote", "quote",

View File

@ -16,7 +16,7 @@ nu-engine = { path="./crates/nu-engine" }
nu-parser = { path="./crates/nu-parser" } nu-parser = { path="./crates/nu-parser" }
nu-protocol = { path = "./crates/nu-protocol" } nu-protocol = { path = "./crates/nu-protocol" }
nu-table = { path = "./crates/nu-table" } nu-table = { path = "./crates/nu-table" }
miette = { version = "3.0.0-alpha.0" } miette = { git = "https://github.com/zkat/miette", branch = "release/3.0.0" }
# mimalloc = { version = "*", default-features = false } # mimalloc = { version = "*", default-features = false }
[dev-dependencies] [dev-dependencies]

View File

@ -7,7 +7,7 @@ edition = "2018"
nu-engine = { path = "../nu-engine" } nu-engine = { path = "../nu-engine" }
nu-parser = { path = "../nu-parser" } nu-parser = { path = "../nu-parser" }
nu-protocol = { path = "../nu-protocol" } nu-protocol = { path = "../nu-protocol" }
miette = { version = "3.0.0-alpha.0", features = ["fancy"] } miette = { git = "https://github.com/zkat/miette", branch = "release/3.0.0", features = ["fancy"] }
thiserror = "1.0.29" thiserror = "1.0.29"
nu-ansi-term = "0.36.0" nu-ansi-term = "0.36.0"
reedline = { git = "https://github.com/jntrnr/reedline", branch = "main" } reedline = { git = "https://github.com/jntrnr/reedline", branch = "main" }

View File

@ -4,6 +4,6 @@ version = "0.1.0"
edition = "2018" edition = "2018"
[dependencies] [dependencies]
miette = { version = "3.0.0-alpha.0" } miette = { git = "https://github.com/zkat/miette", branch = "release/3.0.0" }
thiserror = "1.0.29" thiserror = "1.0.29"
nu-protocol = { path = "../nu-protocol"} nu-protocol = { path = "../nu-protocol"}

View File

@ -39,7 +39,7 @@ pub enum ParseError {
#[diagnostic(code(nu::parser::type_mismatch), url(docsrs))] #[diagnostic(code(nu::parser::type_mismatch), url(docsrs))]
Mismatch(String, String, #[label("expected {0}, found {1}")] Span), // expected, found, span Mismatch(String, String, #[label("expected {0}, found {1}")] Span), // expected, found, span
#[error("Unsupported operation.")] #[error("Types mismatched for operation.")]
#[diagnostic( #[diagnostic(
code(nu::parser::unsupported_operation), code(nu::parser::unsupported_operation),
url(docsrs), url(docsrs),

View File

@ -7,4 +7,4 @@ edition = "2018"
[dependencies] [dependencies]
thiserror = "1.0.29" thiserror = "1.0.29"
miette = { version = "3.0.0-alpha.0" } miette = { git = "https://github.com/zkat/miette", branch = "release/3.0.0" }