Skip to content
This repository has been archived by the owner on Jan 10, 2025. It is now read-only.

Commit

Permalink
Make cargo clippy happy.
Browse files Browse the repository at this point in the history
  • Loading branch information
Lichtso committed Dec 8, 2020
1 parent f5f8542 commit 3e02ec1
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
3 changes: 2 additions & 1 deletion tests/ubpf_execution.rs
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,8 @@ extern crate solana_rbpf;
extern crate test_utils;
extern crate thiserror;

use rand::{rngs::SmallRng, Rng, RngCore, SeedableRng};
#[cfg(not(windows))]
use rand::{rngs::SmallRng, RngCore, SeedableRng};
use solana_rbpf::{
assembler::assemble,
ebpf::{self, hash_symbol_name},
Expand Down
1 change: 1 addition & 0 deletions tests/ubpf_verifier.rs
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,7 @@ impl UserDefinedError for VerifierTestError {}

#[test]
fn test_verifier_success() {
#[allow(clippy::unnecessary_wraps)]
fn verifier_success(_prog: &[u8]) -> Result<(), VerifierTestError> {
Ok(())
}
Expand Down

0 comments on commit 3e02ec1

Please sign in to comment.