Skip to content

Commit

Permalink
clippy
Browse files Browse the repository at this point in the history
  • Loading branch information
hatoo committed Nov 27, 2024
1 parent 3eda6a2 commit 6edbb0a
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/client.rs
Original file line number Diff line number Diff line change
Expand Up @@ -319,7 +319,7 @@ impl Client {
}

pub fn generate_url(&self, rng: &mut Pcg64Si) -> Result<(Cow<Url>, Pcg64Si), ClientError> {
let snapshot = rng.clone();
let snapshot = *rng;
Ok((self.url_generator.generate(rng)?, snapshot))
}

Expand Down
3 changes: 2 additions & 1 deletion src/pcg64si.rs
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,8 @@ impl RngCore for Pcg64Si {
}

fn try_fill_bytes(&mut self, dest: &mut [u8]) -> Result<(), Error> {
Ok(self.fill_bytes(dest))
self.fill_bytes(dest);
Ok(())
}
}

Expand Down

0 comments on commit 6edbb0a

Please sign in to comment.