diff options
Diffstat (limited to 'src/entities/raws.rs')
-rw-r--r-- | src/entities/raws.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/entities/raws.rs b/src/entities/raws.rs index 2c4a8203cb17..061e29a84037 100644 --- a/src/entities/raws.rs +++ b/src/entities/raws.rs @@ -22,8 +22,8 @@ lazy_static! { pub fn raw(name: &'static str) -> &'static EntityRaw<'static> { RAWS_BY_NAME .get(name) - .map(|e| *e) - .expect(format!("Raw not found: {}", name).as_str()) + .copied() + .unwrap_or_else(|| panic!("Raw not found: {}", name)) } #[cfg(test)] |