Skip to content

Instantly share code, notes, and snippets.

@shakesoda
Created July 14, 2014 17:46
Show Gist options
  • Save shakesoda/5444c57e58fabb83e65d to your computer and use it in GitHub Desktop.
Save shakesoda/5444c57e58fabb83e65d to your computer and use it in GitHub Desktop.
struct Entity { id: int }
struct World { entities: Vec<Entity> }
impl World {
fn get_entities(&self) -> Vec<Entity> {
return self.entities; // KABOOM
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment