Skip to content

Commit

Permalink
fix clippy issues from 1.75.0 (#446)
Browse files Browse the repository at this point in the history
  • Loading branch information
demoray authored Jan 2, 2024
1 parent 576ba00 commit 2c5645c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/snapshot.rs
Original file line number Diff line number Diff line change
Expand Up @@ -336,12 +336,12 @@ impl<'a, 'b> Snapshot<'a, 'b> {
segments.sort_by(|a, b| a.p_vaddr.cmp(&b.p_vaddr));

let first_vaddr = segments
.get(0)
.first()
.ok_or_else(|| Error::UnableToCreateSnapshot("no initial addresses".to_string()))?
.p_vaddr;
let first_start = self
.memory_ranges
.get(0)
.first()
.ok_or_else(|| Error::UnableToCreateSnapshot("no initial memory range".to_string()))?
.start;
let start = first_vaddr - first_start;
Expand Down

0 comments on commit 2c5645c

Please sign in to comment.