summaryrefslogtreecommitdiffstats
path: root/internals/src/mail_type.rs
diff options
context:
space:
mode:
Diffstat (limited to 'internals/src/mail_type.rs')
-rw-r--r--internals/src/mail_type.rs7
1 files changed, 3 insertions, 4 deletions
diff --git a/internals/src/mail_type.rs b/internals/src/mail_type.rs
index 96f9358..8b4a811 100644
--- a/internals/src/mail_type.rs
+++ b/internals/src/mail_type.rs
@@ -24,11 +24,10 @@ pub enum MailType {
/// an non us-ascii local/user part (the part before the `@`).
/// They also strongly simplify non ascii utf-8 in all other
/// places like e.g. the `Subject` header.
- Internationalized
+ Internationalized,
}
impl MailType {
-
/// Returns true if the self is equal to `Internationalized`
#[inline]
pub fn is_internationalized(&self) -> bool {
@@ -36,12 +35,12 @@ impl MailType {
}
/// Returns true if self is either `Internationalized` or `Mime8BitEnabled`
- pub fn supports_8bit_bodies( &self ) -> bool {
+ pub fn supports_8bit_bodies(&self) -> bool {
use self::MailType::*;
match *self {
Ascii => false,
Mime8BitEnabled => true,
- Internationalized => true
+ Internationalized => true,
}
}
}