Skip to content

Commit

Permalink
...
Browse files Browse the repository at this point in the history
  • Loading branch information
sokorototo committed Feb 10, 2025
1 parent 2c0fdcf commit 4b0b4bd
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@
### 🀄 Show me some code _dang it!_

```rust
let mut target = Cursor::new(Vec::<u8>::new());
let mut target = Cursor::new(vec![]);

// Data to be written
let data_1 = b"Around The World, Fatter better stronker" as &[u8];
Expand Down
2 changes: 1 addition & 1 deletion crates/vach-benchmarks/benches/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ pub fn criterion_benchmark(c: &mut Criterion) {

/* ARCHIVE BENCHMARKS */
let mut throughput_group = c.benchmark_group("Loader");
let mut target = io::Cursor::new(Vec::<u8>::new());
let mut target = io::Cursor::new(vec![]);

{
// Builds an archive source from which to benchmark
Expand Down
4 changes: 2 additions & 2 deletions crates/vach-cli/src/commands/pack.rs
Original file line number Diff line number Diff line change
Expand Up @@ -154,8 +154,8 @@ impl CommandTrait for Evaluator {
let truncate = args.is_present(key_names::TRUNCATE);

// Extract the version information to be set
let version = match args.value_of(key_names::VERSION) {
Some(version) => version.parse::<u8>()?,
let version: u8 = match args.value_of(key_names::VERSION) {
Some(version) => version.parse()?,
None => 0,
};

Expand Down
2 changes: 1 addition & 1 deletion crates/vach/src/tests.rs
Original file line number Diff line number Diff line change
Expand Up @@ -269,7 +269,7 @@ fn consolidated_test() -> InternalResult {
use crate::crypto_utils::{gen_keypair, read_keypair};
use std::{io::Cursor, time::Instant};

let mut target = Cursor::new(Vec::<u8>::new());
let mut target = Cursor::new(vec![]);

// Data to be written
let data_1 = b"Around The World, Fatter wetter stronker" as &[u8];
Expand Down

0 comments on commit 4b0b4bd

Please sign in to comment.