From a72d9c58effee617d130458712f6d1ecc9b8ca7e Mon Sep 17 00:00:00 2001 From: Will Crichton Date: Tue, 19 Sep 2023 17:36:07 -0700 Subject: [PATCH] Bump to 0.2.16 --- Cargo.lock | 2 +- Makefile.toml | 2 +- crates/mdbook-quiz/Cargo.toml | 2 +- crates/mdbook-quiz/src/main.rs | 3 ++- js/packages/quiz/package.json | 2 +- 5 files changed, 6 insertions(+), 5 deletions(-) diff --git a/Cargo.lock b/Cargo.lock index e1fc530..c7da13b 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -1151,7 +1151,7 @@ dependencies = [ [[package]] name = "mdbook-quiz" -version = "0.2.15" +version = "0.2.16" dependencies = [ "anyhow", "html-escape", diff --git a/Makefile.toml b/Makefile.toml index 93c253e..77ab476 100644 --- a/Makefile.toml +++ b/Makefile.toml @@ -22,7 +22,7 @@ cp crates/mdbook-quiz-schema/bindings/* js/packages/quiz/src/bindings # Watch [tasks.watch] -script = "cargo watch -x 'install --path . --debug --offline --features rust-editor --features source-map' -w src -w js/packages/quiz-embed/dist --ignore-nothing" +script = "cargo watch -x 'install --path crates/mdbook-quiz --debug --offline --features rust-editor --features source-map' -w src -w js/packages/quiz-embed/dist --ignore-nothing" [tasks.watch.run_task] name = ["watch-cargo"] diff --git a/crates/mdbook-quiz/Cargo.toml b/crates/mdbook-quiz/Cargo.toml index 1ab59cd..f7f84d4 100644 --- a/crates/mdbook-quiz/Cargo.toml +++ b/crates/mdbook-quiz/Cargo.toml @@ -3,7 +3,7 @@ name = "mdbook-quiz" authors = ["Will Crichton "] description = "Interactive quizzes for your mdBook" license = "MIT OR Apache-2.0" -version = "0.2.15" +version = "0.2.16" edition = "2021" include = ["/src", "/js"] repository = "https://github.com/cognitive-engineering-lab/mdbook-quiz" diff --git a/crates/mdbook-quiz/src/main.rs b/crates/mdbook-quiz/src/main.rs index 8421c31..17b6a81 100644 --- a/crates/mdbook-quiz/src/main.rs +++ b/crates/mdbook-quiz/src/main.rs @@ -126,7 +126,8 @@ impl QuizPreprocessor { content_toml = fs::read_to_string(&quiz_path_abs)?; } - let content = content_toml.parse::()?; + #[allow(unused_mut)] + let mut content = content_toml.parse::()?; #[cfg(feature = "aquascope")] self.add_aquascope_blocks(&mut content)?; diff --git a/js/packages/quiz/package.json b/js/packages/quiz/package.json index ca7a66a..4393dbc 100644 --- a/js/packages/quiz/package.json +++ b/js/packages/quiz/package.json @@ -1,6 +1,6 @@ { "name": "@wcrichto/quiz", - "version": "0.2.15", + "version": "0.2.16", "files": [ "dist" ],