From 0baf5a1e19f9ee3c79f1ba9fa279b5c6e253d97a Mon Sep 17 00:00:00 2001 From: Nicolas Patry Date: Mon, 2 Oct 2023 10:15:10 +0200 Subject: [PATCH] Fixed PR warnings. --- candle-book/Cargo.toml | 4 ++-- candle-book/src/lib.rs | 4 +++- candle-book/src/simplified.rs | 2 +- 3 files changed, 6 insertions(+), 4 deletions(-) diff --git a/candle-book/Cargo.toml b/candle-book/Cargo.toml index 8ec92e87..5cdb6e97 100644 --- a/candle-book/Cargo.toml +++ b/candle-book/Cargo.toml @@ -24,9 +24,10 @@ intel-mkl-src = { workspace = true, optional = true } cudarc = { workspace = true, optional = true } half = { workspace = true, optional = true } image = { workspace = true, optional = true } +anyhow = { workspace = true } +tokio = "1.29.1" [dev-dependencies] -anyhow = { workspace = true } byteorder = { workspace = true } hf-hub = { workspace = true, features=["tokio"]} clap = { workspace = true } @@ -38,7 +39,6 @@ tracing-chrome = { workspace = true } tracing-subscriber = { workspace = true } wav = { workspace = true } # Necessary to disambiguate with tokio in wasm examples which are 1.28.1 -tokio = "1.29.1" parquet = { workspace = true } image = { workspace = true } diff --git a/candle-book/src/lib.rs b/candle-book/src/lib.rs index 54bbad82..a1ec1e94 100644 --- a/candle-book/src/lib.rs +++ b/candle-book/src/lib.rs @@ -1,4 +1,6 @@ -mod simplified; +#[cfg(test)] +pub mod simplified; + #[cfg(test)] mod tests { use anyhow::Result; diff --git a/candle-book/src/simplified.rs b/candle-book/src/simplified.rs index 45f99c57..6427563f 100644 --- a/candle-book/src/simplified.rs +++ b/candle-book/src/simplified.rs @@ -193,4 +193,4 @@ fn train(m: Dataset, dev: &Device) -> anyhow::Result { // ANCHOR_END: book_training_simplified2 -} \ No newline at end of file +}