Skip to content

Commit

Permalink
Use Default::default() where possible
Browse files Browse the repository at this point in the history
  • Loading branch information
mqxf committed Sep 18, 2023
1 parent ca0b2de commit b3c8c50
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions examples/new-meta/tests/read_state.rs
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ fn read_state_bytes_with_wasm_func_returns_transformed_state() {

let actual_state = program
.read_state_bytes_using_wasm(
Vec::<u8>::default(),
Default::default(),
FUNC_NAME,
META_WASM_V1.to_vec(),
state_args_encoded!(),
Expand All @@ -52,7 +52,7 @@ fn read_state_bytes_with_parameterized_wasm_func_returns_transformed_state() {

let actual_state = program
.read_state_bytes_using_wasm(
Vec::<u8>::default(),
Default::default(),
FUNC_NAME,
META_WASM_V2.to_vec(),
state_args_encoded!(&other_person),
Expand All @@ -79,7 +79,7 @@ fn read_state_bytes_with_two_args_wasm_func_returns_transformed_state() {

let actual_state = program
.read_state_bytes_using_wasm(
Vec::<u8>::default(),
Default::default(),
FUNC_NAME,
META_WASM_V2.to_vec(),
state_args_encoded!(name.clone(), surname.clone()),
Expand Down

0 comments on commit b3c8c50

Please sign in to comment.