diff --git a/crates/voicevox_core/src/asyncs.rs b/crates/voicevox_core/src/asyncs.rs index 638432e34..c10384a4f 100644 --- a/crates/voicevox_core/src/asyncs.rs +++ b/crates/voicevox_core/src/asyncs.rs @@ -44,7 +44,7 @@ impl Async for Unstoppable { /// [blocking]クレートで駆動する。 /// -/// [blocking](https://docs.rs/crate/blocking) +/// [blocking]: https://docs.rs/crate/blocking pub(crate) enum BlockingThreadPool {} impl Async for BlockingThreadPool { diff --git a/crates/voicevox_core/src/voice_model.rs b/crates/voicevox_core/src/voice_model.rs index f7728e84f..96a7d4ec4 100644 --- a/crates/voicevox_core/src/voice_model.rs +++ b/crates/voicevox_core/src/voice_model.rs @@ -11,8 +11,7 @@ use std::{ use anyhow::{anyhow, Context as _}; use derive_more::From; use easy_ext::ext; -use enum_map::enum_map; -use enum_map::EnumMap; +use enum_map::{enum_map, EnumMap}; use futures_io::{AsyncBufRead, AsyncSeek}; use futures_util::future::{OptionFuture, TryFutureExt as _}; use itertools::Itertools as _; diff --git a/crates/voicevox_core_macros/src/lib.rs b/crates/voicevox_core_macros/src/lib.rs index 866a9531b..ff0b83037 100644 --- a/crates/voicevox_core_macros/src/lib.rs +++ b/crates/voicevox_core_macros/src/lib.rs @@ -107,22 +107,22 @@ pub fn derive_inference_output_signature( /// # Example /// /// ``` -// use macros::IndexForFields; -// -// #[derive(IndexForFields)] -// #[index_for_fields(TalkOperation)] -// pub(crate) struct TalkManifest { -// #[index_for_fields(TalkOperation::PredictDuration)] -// pub(crate) predict_duration_filename: Arc, -// -// #[index_for_fields(TalkOperation::PredictIntonation)] -// pub(crate) predict_intonation_filename: Arc, -// -// #[index_for_fields(TalkOperation::Decode)] -// pub(crate) decode_filename: Arc, -// -// // … -// } +/// use macros::IndexForFields; +/// +/// #[derive(IndexForFields)] +/// #[index_for_fields(TalkOperation)] +/// pub(crate) struct TalkManifest { +/// #[index_for_fields(TalkOperation::PredictDuration)] +/// pub(crate) predict_duration_filename: Arc, +/// +/// #[index_for_fields(TalkOperation::PredictIntonation)] +/// pub(crate) predict_intonation_filename: Arc, +/// +/// #[index_for_fields(TalkOperation::Decode)] +/// pub(crate) decode_filename: Arc, +/// +/// // … +/// } /// ``` #[cfg(not(doctest))] #[proc_macro_derive(IndexForFields, attributes(index_for_fields))]