Add clippy to circleCI and fix all lints

This commit is contained in:
Griffin Smith 2019-07-29 11:46:01 -04:00
parent 9db5fad2f9
commit 7138d9a0b6
16 changed files with 89 additions and 83 deletions

View file

@ -13,7 +13,7 @@ pub trait Identified<ID>: Debug {
fn id(&self) -> ID {
self.opt_id()
.expect(format!("Entity ({:?}) is not in the game", self).as_str())
.unwrap_or_else(|| panic!("Entity ({:?}) is not in the game", self))
}
}