From 6e3ffd46ae23febaa499506c5e617e0baed0386f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Alexander=20Mei=C3=9Fner?= Date: Tue, 27 Sep 2022 19:49:46 +0200 Subject: [PATCH] Bump to v0.2.33 (#383) * Bump to v0.2.33 * Makes cargo clippy happy. --- Cargo.lock | 4 ++-- Cargo.toml | 2 +- README.md | 2 +- cli/Cargo.lock | 6 +++--- cli/Cargo.toml | 2 +- cli/src/main.rs | 6 +++--- fuzz/Cargo.lock | 6 +++--- fuzz/Cargo.toml | 2 +- src/elf.rs | 2 +- test_utils/Cargo.lock | 4 ++-- test_utils/Cargo.toml | 2 +- 11 files changed, 19 insertions(+), 19 deletions(-) diff --git a/Cargo.lock b/Cargo.lock index 79226d16..d8c7959d 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -267,7 +267,7 @@ dependencies = [ [[package]] name = "solana_rbpf" -version = "0.2.32" +version = "0.2.33" dependencies = [ "arbitrary", "byteorder 1.4.3", @@ -299,7 +299,7 @@ dependencies = [ [[package]] name = "test_utils" -version = "0.2.32" +version = "0.2.33" dependencies = [ "libc", "solana_rbpf", diff --git a/Cargo.toml b/Cargo.toml index cba8e66d..1032bca7 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "solana_rbpf" -version = "0.2.32" +version = "0.2.33" description = "Virtual machine and JIT compiler for eBPF programs" authors = ["Solana Maintainers "] repository = "https://github.com/solana-labs/rbpf" diff --git a/README.md b/README.md index f170f1f4..685cb4cb 100644 --- a/README.md +++ b/README.md @@ -32,7 +32,7 @@ so it should work out of the box by adding it as a dependency in your ```toml [dependencies] -solana_rbpf = "0.2.32" +solana_rbpf = "0.2.33" ``` You can also use the development version from this GitHub repository. This diff --git a/cli/Cargo.lock b/cli/Cargo.lock index 8ff2bd26..a759f1f8 100644 --- a/cli/Cargo.lock +++ b/cli/Cargo.lock @@ -284,7 +284,7 @@ dependencies = [ [[package]] name = "rbpf_cli" -version = "0.2.32" +version = "0.2.33" dependencies = [ "clap", "solana_rbpf", @@ -319,7 +319,7 @@ dependencies = [ [[package]] name = "solana_rbpf" -version = "0.2.32" +version = "0.2.33" dependencies = [ "byteorder", "combine", @@ -361,7 +361,7 @@ dependencies = [ [[package]] name = "test_utils" -version = "0.2.32" +version = "0.2.33" dependencies = [ "libc", "solana_rbpf", diff --git a/cli/Cargo.toml b/cli/Cargo.toml index aa962433..7cbfe394 100644 --- a/cli/Cargo.toml +++ b/cli/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "rbpf_cli" -version = "0.2.32" +version = "0.2.33" description = "CLI to test and analyze eBPF programs" authors = ["Solana Maintainers "] repository = "https://github.com/solana-labs/rbpf" diff --git a/cli/src/main.rs b/cli/src/main.rs index f5eeee51..94477584 100644 --- a/cli/src/main.rs +++ b/cli/src/main.rs @@ -128,7 +128,7 @@ fn main() { let syscall_registry = SyscallRegistry::default(); let executable = match matches.value_of("assembler") { Some(asm_file_name) => { - let mut file = File::open(&Path::new(asm_file_name)).unwrap(); + let mut file = File::open(Path::new(asm_file_name)).unwrap(); let mut source = Vec::new(); file.read_to_end(&mut source).unwrap(); assemble::( @@ -138,7 +138,7 @@ fn main() { ) } None => { - let mut file = File::open(&Path::new(matches.value_of("elf").unwrap())).unwrap(); + let mut file = File::open(Path::new(matches.value_of("elf").unwrap())).unwrap(); let mut elf = Vec::new(); file.read_to_end(&mut elf).unwrap(); Executable::::from_elf(&elf, config, syscall_registry) @@ -156,7 +156,7 @@ fn main() { let mut mem = match matches.value_of("input").unwrap().parse::() { Ok(allocate) => vec![0u8; allocate], Err(_) => { - let mut file = File::open(&Path::new(matches.value_of("input").unwrap())).unwrap(); + let mut file = File::open(Path::new(matches.value_of("input").unwrap())).unwrap(); let mut memory = Vec::new(); file.read_to_end(&mut memory).unwrap(); memory diff --git a/fuzz/Cargo.lock b/fuzz/Cargo.lock index 3e8ddc65..08af7ce5 100644 --- a/fuzz/Cargo.lock +++ b/fuzz/Cargo.lock @@ -347,7 +347,7 @@ dependencies = [ [[package]] name = "solana_rbpf" -version = "0.2.32" +version = "0.2.33" dependencies = [ "arbitrary", "byteorder", @@ -364,7 +364,7 @@ dependencies = [ [[package]] name = "solana_rbpf-fuzz" -version = "0.2.32" +version = "0.2.33" dependencies = [ "arbitrary", "libfuzzer-sys", @@ -387,7 +387,7 @@ dependencies = [ [[package]] name = "test_utils" -version = "0.2.32" +version = "0.2.33" dependencies = [ "libc", "solana_rbpf", diff --git a/fuzz/Cargo.toml b/fuzz/Cargo.toml index d1b46666..31ab6462 100644 --- a/fuzz/Cargo.toml +++ b/fuzz/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "solana_rbpf-fuzz" -version = "0.2.32" +version = "0.2.33" authors = ["Automatically generated"] publish = false edition = "2018" diff --git a/src/elf.rs b/src/elf.rs index 3f8978a6..ae3d11bc 100644 --- a/src/elf.rs +++ b/src/elf.rs @@ -1651,7 +1651,7 @@ mod test { let range = Uniform::new(0, 255); println!("random bytes"); for _ in 0..1_000 { - let elf_bytes: Vec = (0..100).map(|_| rng.sample(&range)).collect(); + let elf_bytes: Vec = (0..100).map(|_| rng.sample(range)).collect(); let _ = ElfExecutable::load(Config::default(), &elf_bytes, SyscallRegistry::default()); } diff --git a/test_utils/Cargo.lock b/test_utils/Cargo.lock index d0cc2352..92a49973 100644 --- a/test_utils/Cargo.lock +++ b/test_utils/Cargo.lock @@ -185,7 +185,7 @@ dependencies = [ [[package]] name = "solana_rbpf" -version = "0.2.32" +version = "0.2.33" dependencies = [ "byteorder", "combine", @@ -212,7 +212,7 @@ dependencies = [ [[package]] name = "test_utils" -version = "0.2.32" +version = "0.2.33" dependencies = [ "libc", "solana_rbpf", diff --git a/test_utils/Cargo.toml b/test_utils/Cargo.toml index b7cb4344..fa01d0f7 100644 --- a/test_utils/Cargo.toml +++ b/test_utils/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "test_utils" -version = "0.2.32" +version = "0.2.33" authors = ["Solana Maintainers "] edition = "2018" publish = false