Add clippy to circleCI and fix all lints
This commit is contained in:
parent
9db5fad2f9
commit
7138d9a0b6
16 changed files with 89 additions and 83 deletions
|
|
@ -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))
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue