Skip to content

Commit

Permalink
some fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
sn-blg committed Jul 9, 2024
1 parent 3605a89 commit 82f7e2b
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
6 changes: 5 additions & 1 deletion src/h3m/obstacle_generator/obstacle_map/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -218,7 +218,11 @@ impl ObstacleMap {
true
};

area.indexes().iter().rev().find(|&&index| is_valid_index(index)).copied()
area.indexes()
.iter()
.rev()
.find(|&&index| is_valid_index(index))
.copied()
}

pub fn add_obstacle(
Expand Down
2 changes: 1 addition & 1 deletion src/h3m/parser/common.rs
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ use byteorder::{ReadBytesExt, WriteBytesExt, LE};
use std::io::{Read, Seek, SeekFrom, Write};

pub fn skip_bytes<S: Seek>(input: &mut S, count: u32) -> H3mResult<()> {
let count = i64::try_from(count)?;
let count = i64::from(count);
input.seek(SeekFrom::Current(count))?;
Ok(())
}
Expand Down

0 comments on commit 82f7e2b

Please sign in to comment.