Skip to content

Commit

Permalink
fix: clippy false positive
Browse files Browse the repository at this point in the history
  • Loading branch information
desbma committed May 21, 2024
1 parent 776b146 commit 0ec360b
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/strace/parser.rs
Original file line number Diff line number Diff line change
Expand Up @@ -312,7 +312,11 @@ fn parse_argument(caps: &regex::Captures) -> anyhow::Result<SyscallArg> {
let v = parse_argument(&caps)?;
// dbg!(&v);
members.insert(k.to_owned(), v);
struct_ = struct_[k.len() + 1 + caps.get(0).unwrap().len()..struct_.len()].to_owned();
#[allow(clippy::assigning_clones)]
{
struct_ =
struct_[k.len() + 1 + caps.get(0).unwrap().len()..struct_.len()].to_owned();
}
}
Ok(SyscallArg::Struct(members))
} else if let Some(array) = caps.name("array") {
Expand Down

0 comments on commit 0ec360b

Please sign in to comment.