From f3c203d7b1a7a579fcba77a1d94cfc75f2c81ca6 Mon Sep 17 00:00:00 2001 From: Ryo Yamashita Date: Sun, 1 Oct 2023 20:35:33 +0900 Subject: [PATCH] `LoadModel` --- crates/voicevox_core/src/error.rs | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/crates/voicevox_core/src/error.rs b/crates/voicevox_core/src/error.rs index a85928c5d..551bd8c52 100644 --- a/crates/voicevox_core/src/error.rs +++ b/crates/voicevox_core/src/error.rs @@ -149,10 +149,7 @@ pub(crate) type LoadModelResult = std::result::Result; /// 音声モデル読み込みのエラー。 #[derive(Error, Debug)] -#[error( - "`{path}`の読み込みに失敗しました: {context}{}", - source.as_ref().map(|e| format!(": {e}")).unwrap_or_default()) -] +#[error("`{path}`の読み込みに失敗しました: {context}")] pub(crate) struct LoadModelError { pub(crate) path: PathBuf, pub(crate) context: LoadModelErrorKind,