Accept and Into<String> for FormattedBody::html
This commit is contained in:
parent
f56b530dc3
commit
e01706d1bb
@ -294,8 +294,8 @@ pub struct FormattedBody {
|
||||
|
||||
impl FormattedBody {
|
||||
/// Creates a new HTML-formatted message body.
|
||||
pub fn html(body: String) -> Self {
|
||||
Self { format: MessageFormat::Html, body }
|
||||
pub fn html(body: impl Into<String>) -> Self {
|
||||
Self { format: MessageFormat::Html, body: body.into() }
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user