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-27 19:18:57 +01:00
commit ea557f08d3
4 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))?;
.ok_or(BspError::LumpOutOfBounds(*lump))?;
Ok(match lump.ident {
0 => Cow::Borrowed(raw_data),