Return `InteractionError` instead of `std::io::Error` from `InteractionEnvironment::emit_message`
Dependencies
- [2]
IZ67IMRIMove prompt message to initial constructor - [3]
IXBE5Q6TImplement `InteractionEnvironment::print_message` - [4]
BC22FLOQMove interaction constructors back to individual types - [5]
JUV7C6ETCreate initial prototype of `fluent_embed_interaction` - [6]
7YOM2QEFMove interaction constructors from individual types to implementations on `InteractionEnvironment` - [7]
KFFAQIZURename `InteractionEnvironment::print_message` to `emit_message` - [8]
EKXWNEPKRename `Localize::message_for_locale` to `Localize::localize_for`
Change contents
- edit in l10n_embed_interaction/src/lib.rs at line 23
}impl From<std::io::Error> for InteractionError {fn from(value: std::io::Error) -> Self {InteractionError::IO(value)} - replacement in l10n_embed_interaction/src/lib.rs at line 58
pub fn emit_message<L: Localize>(&self, message: L) -> Result<(), std::io::Error> {pub fn emit_message<L: Localize>(&self, message: L) -> Result<(), InteractionError> { - replacement in l10n_embed_interaction/src/lib.rs at line 60
.println(message.localize_for(&self.locale)).println(message.localize_for(&self.locale))?;Ok(())