Add conversion to string.
Some checks failed
continuous-integration/drone/push Build is failing

This commit is contained in:
Nolan Darilek 2022-03-22 16:37:54 -05:00
parent 52d8e8db3b
commit 813137d7a1

View File

@ -24,6 +24,12 @@ pub struct LogEntry {
pub message: String, pub message: String,
} }
impl Into<String> for LogEntry {
fn into(self) -> String {
self.message
}
}
fn setup(mut commands: Commands) { fn setup(mut commands: Commands) {
commands.spawn().insert(Log::default()); commands.spawn().insert(Log::default());
} }