aboutsummaryrefslogtreecommitdiffstats
path: root/src/message_properties.rs
diff options
context:
space:
mode:
authorDirk Van Haerenborgh <vhdirk@gmail.com>2019-11-16 11:14:10 +0100
committerDirk Van Haerenborgh <vhdirk@gmail.com>2019-11-16 11:14:10 +0100
commite16769c9b16223c491766f9c9b2c828ee2253ed4 (patch)
treed1a6e68acc5bbb14d9f1e6bf65d7549916ff95b9 /src/message_properties.rs
parent084675fdfe1329cbd58a48f2306b7c61dec08834 (diff)
downloadmail-e16769c9b16223c491766f9c9b2c828ee2253ed4.tar.gz
less unwraps
Diffstat (limited to 'src/message_properties.rs')
-rw-r--r--src/message_properties.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/message_properties.rs b/src/message_properties.rs
index 4802383..19ea960 100644
--- a/src/message_properties.rs
+++ b/src/message_properties.rs
@@ -64,7 +64,7 @@ where
(key, value)
};
- Some((k.to_str().unwrap().to_string(), v.to_str().unwrap().to_string()))
+ Some((k.to_string_lossy().to_string(), v.to_string_lossy().to_string()))
}
}