mirror of
https://codeberg.org/icewind/vbsp.git
synced 2026-06-04 19:14:08 +02:00
clippy fixes
This commit is contained in:
parent
e348934ec5
commit
3cdb50636d
3 changed files with 6 additions and 6 deletions
|
|
@ -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),
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue