Implement From<&str> for canvas::Text

This commit is contained in:
Héctor Ramón Jiménez 2020-04-14 06:43:58 +02:00
parent a2296b466b
commit 5c923fce48

View File

@ -41,3 +41,9 @@ impl From<String> for Text {
}
}
}
impl From<&str> for Text {
fn from(content: &str) -> Text {
String::from(content).into()
}
}