1
0
Fork 0
mirror of https://codeberg.org/icewind/vbsp.git synced 2026-06-04 19:14:08 +02:00

clippy fixes

This commit is contained in:
Robin Appelman 2022-02-18 17:22:27 +01:00
commit 3cdb50636d
3 changed files with 6 additions and 6 deletions

View file

@ -52,7 +52,7 @@ impl<'a> BspFile<'a> {
let raw_data = self
.data
.get(lump.offset as usize..lump.offset as usize + lump.length as usize)
.ok_or_else(|| BspError::LumpOutOfBounds(lump.clone()))?;
.ok_or_else(|| BspError::LumpOutOfBounds(*lump))?;
Ok(match lump.ident {
0 => Cow::Borrowed(raw_data),