Skip to content

Commit

Permalink
Fix warning in rust implementation tests
Browse files Browse the repository at this point in the history
  • Loading branch information
Eike S R committed Apr 25, 2024
1 parent 1b5d7c3 commit 012b633
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions flatdata-rs/lib/src/arrayview.rs
Original file line number Diff line number Diff line change
Expand Up @@ -102,15 +102,15 @@ mod test {

let x = {
// test clone and lifetime of returned reference
let view_copy = view.clone();
let view_copy = view;
&view_copy[0]
};
assert_eq!(65535, x.x());
assert_eq!(65535, x.y());

let x = {
// test clone and lifetime of returned reference
let view_copy = view.clone();
let view_copy = view;
view_copy.iter().next().unwrap()
};
assert_eq!(65535, x.x());
Expand Down

0 comments on commit 012b633

Please sign in to comment.