Clippy fixes
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
2023-01-02 11:25:36 +01:00
parent f2b0d3b9f3
commit aae41b93bb
11 changed files with 18 additions and 19 deletions

View File

@@ -141,8 +141,7 @@ impl Pokemon {
.static_data()
.natures()
.get_nature(nature)
.unwrap_or_else(|| panic!("Unknown nature name was given: {}.", &nature))
.clone();
.unwrap_or_else(|| panic!("Unknown nature name was given: {}.", &nature));
let mut pokemon = Self {
identifier: Default::default(),
library,
@@ -892,7 +891,7 @@ pub mod test {
#[test]
fn construct_pokemon() {
let lib = mock_library();
let species = lib.static_data().species().get(&"foo".into()).unwrap().clone();
let species = lib.static_data().species().get(&"foo".into()).unwrap();
let form = species.get_form(&"default".into()).unwrap();
let pokemon = Pokemon::new(