Skip to content

Commit

Permalink
Minor refactor
Browse files Browse the repository at this point in the history
  • Loading branch information
qryxip committed Sep 10, 2024
1 parent e84fed7 commit 5cb2bcb
Show file tree
Hide file tree
Showing 3 changed files with 18 additions and 19 deletions.
2 changes: 1 addition & 1 deletion crates/voicevox_core/src/asyncs.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down
3 changes: 1 addition & 2 deletions crates/voicevox_core/src/voice_model.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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 _;
Expand Down
32 changes: 16 additions & 16 deletions crates/voicevox_core_macros/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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<str>,
//
// #[index_for_fields(TalkOperation::PredictIntonation)]
// pub(crate) predict_intonation_filename: Arc<str>,
//
// #[index_for_fields(TalkOperation::Decode)]
// pub(crate) decode_filename: Arc<str>,
//
// // …
// }
/// use macros::IndexForFields;
///
/// #[derive(IndexForFields)]
/// #[index_for_fields(TalkOperation)]
/// pub(crate) struct TalkManifest {
/// #[index_for_fields(TalkOperation::PredictDuration)]
/// pub(crate) predict_duration_filename: Arc<str>,
///
/// #[index_for_fields(TalkOperation::PredictIntonation)]
/// pub(crate) predict_intonation_filename: Arc<str>,
///
/// #[index_for_fields(TalkOperation::Decode)]
/// pub(crate) decode_filename: Arc<str>,
///
/// // …
/// }
/// ```
#[cfg(not(doctest))]
#[proc_macro_derive(IndexForFields, attributes(index_for_fields))]
Expand Down

0 comments on commit 5cb2bcb

Please sign in to comment.