diff --git a/Cargo.lock b/Cargo.lock index 5a5bbec2..1a4fd9f2 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -298,9 +298,9 @@ dependencies = [ [[package]] name = "ariadne" -version = "0.3.0" +version = "0.4.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "72fe02fc62033df9ba41cba57ee19acf5e742511a140c7dbc3a873e19a19a1bd" +checksum = "44055e597c674aef7cb903b2b9f6e4cba1277ed0d2d61dae7cd52d7ffa81f8e2" dependencies = [ "unicode-width", "yansi", @@ -1834,9 +1834,9 @@ checksum = "dff9641d1cd4be8d1a070daf9e3773c5f67e78b4d9d42263020c057706765c04" [[package]] name = "yansi" -version = "0.5.1" +version = "1.0.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "09041cd90cf85f7f8b2df60c646f853b7f535ce68f85244eb6731cf89fa498ec" +checksum = "cfe53a6657fd280eaa890a3bc59152892ffa3e30101319d168b781ed6529b049" [[package]] name = "zerocopy" diff --git a/package/origlang-cli/Cargo.toml b/package/origlang-cli/Cargo.toml index e18fc37a..38545595 100644 --- a/package/origlang-cli/Cargo.toml +++ b/package/origlang-cli/Cargo.toml @@ -14,7 +14,7 @@ thiserror = "1.0.59" origlang-compiler = { path = "../origlang-compiler" } origlang-typesystem-model = { path = "../origlang-typesystem-model" } origlang-runtime = { path = "../origlang-runtime" } -ariadne = "0.3.0" +ariadne = "0.4.1" origlang-platform = { path = "../origlang-platform" } origlang-ast = { path = "../origlang-ast" } strum = { version = "0.26.2", features = ["derive"] } diff --git a/package/origlang-cli/src/task/repl.rs b/package/origlang-cli/src/task/repl.rs index c18712ad..5ace4ce7 100644 --- a/package/origlang-cli/src/task/repl.rs +++ b/package/origlang-cli/src/task/repl.rs @@ -17,6 +17,8 @@ use origlang_typesystem_model::TypedRootAst; struct Dummy((), Source); impl ariadne::Cache<()> for Dummy { + type Storage = String; + fn fetch(&mut self, _id: &()) -> Result<&Source, Box> { Ok(&self.1) }