forked from VOICEVOX/voicevox_core
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
3 changed files
with
11 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,9 @@ | ||
// FIXME: 要議論: https://github.com/VOICEVOX/voicevox_core/issues/595 | ||
|
||
use std::fmt::Display; | ||
|
||
pub fn to_zenkaku(surface: &str) -> String { | ||
crate::user_dict::to_zenkaku(surface) | ||
} | ||
|
||
pub fn validate_pronunciation(pronunciation: &str) -> std::result::Result<(), impl Display> { | ||
crate::user_dict::validate_pronunciation(pronunciation) | ||
pub fn validate_pronunciation(pronunciation: &str) -> crate::Result<()> { | ||
crate::user_dict::validate_pronunciation(pronunciation).map_err(Into::into) | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters