This commit is contained in:
parent
52d8e8db3b
commit
813137d7a1
|
@ -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());
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue
Block a user