This commit is contained in:
@@ -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(
|
||||
|
||||
Reference in New Issue
Block a user