mirror of
https://github.com/chatmail/core.git
synced 2026-04-28 02:46:29 +03:00
Accept ToString instead of AsRef<str> in Params.set() (#3732)
This commit is contained in:
@@ -726,7 +726,7 @@ impl Message {
|
||||
self.text = text;
|
||||
}
|
||||
|
||||
pub fn set_file(&mut self, file: impl AsRef<str>, filemime: Option<&str>) {
|
||||
pub fn set_file(&mut self, file: impl ToString, filemime: Option<&str>) {
|
||||
self.param.set(Param::File, file);
|
||||
if let Some(filemime) = filemime {
|
||||
self.param.set(Param::MimeType, filemime);
|
||||
|
||||
Reference in New Issue
Block a user