Skip to content

Commit

Permalink
Merge pull request #111 from yotamofek/clippy-warnings
Browse files Browse the repository at this point in the history
Fix clippy warnings
  • Loading branch information
jswrenn authored Feb 17, 2025
2 parents 3cb921f + c23c77a commit ef94c4e
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1464,7 +1464,7 @@ fn deref() {

fn is_str(_: &str) {}
let value: Either<String, &str> = Left(String::from("test"));
is_str(&*value);
is_str(&value);
}

#[test]
Expand All @@ -1485,8 +1485,8 @@ fn seek() {

let use_empty = false;
let mut mockdata = [0x00; 256];
for i in 0..256 {
mockdata[i] = i as u8;
for (i, data) in mockdata.iter_mut().enumerate() {
*data = i as u8;
}

let mut reader = if use_empty {
Expand Down

0 comments on commit ef94c4e

Please sign in to comment.