Have TextView::content take Into<StyledString>

This commit is contained in:
Alexandre Bury 2018-01-15 14:13:30 -08:00
parent 5003095171
commit 51eb6bf34c

View File

@ -287,7 +287,7 @@ impl TextView {
/// Chainable variant.
pub fn content<S>(self, content: S) -> Self
where
S: Into<String>,
S: Into<StyledString>,
{
self.with(|s| s.set_content(content))
}