mirror of
https://github.com/logos-blockchain/logos-execution-zone.git
synced 2026-08-27 04:11:08 +00:00
chore(lee,lez): fix pre-existing rustfmt violations (#776)
marvin/incremental-updates-2 was not cargo +nightly fmt --check clean; these files had drifted since the last fmt pass (mostly unwrapped long import lists). No functional changes.
This commit is contained in:
committed by
Marvin Jones
parent
687cc211f9
commit
b676c6c360
@@ -1,6 +1,9 @@
|
||||
use lee_core::{
|
||||
account::{Account, AccountDiff, BalanceDiff, Data},
|
||||
program::{AccountDiffOutput, Claim, ProgramCall, ProgramInput, ProgramOutput, read_lee_call, write_update_from_diff_output},
|
||||
program::{
|
||||
AccountDiffOutput, Claim, ProgramCall, ProgramInput, ProgramOutput, read_lee_call,
|
||||
write_update_from_diff_output,
|
||||
},
|
||||
};
|
||||
|
||||
// Hello-world example program.
|
||||
@@ -82,6 +85,9 @@ fn main() {
|
||||
.write();
|
||||
}
|
||||
|
||||
fn update_from_diff(_pre_state: Account, diff_data: Data) -> Result<Data, std::convert::Infallible> {
|
||||
fn update_from_diff(
|
||||
_pre_state: Account,
|
||||
diff_data: Data,
|
||||
) -> Result<Data, std::convert::Infallible> {
|
||||
Ok(diff_data)
|
||||
}
|
||||
|
||||
@@ -1,6 +1,9 @@
|
||||
use lee_core::{
|
||||
account::{Account, AccountDiff, BalanceDiff, Data},
|
||||
program::{AccountDiffOutput, Claim, ProgramCall, ProgramInput, ProgramOutput, read_lee_call, write_update_from_diff_output},
|
||||
program::{
|
||||
AccountDiffOutput, Claim, ProgramCall, ProgramInput, ProgramOutput, read_lee_call,
|
||||
write_update_from_diff_output,
|
||||
},
|
||||
};
|
||||
|
||||
// Hello-world with authorization example program.
|
||||
@@ -89,6 +92,9 @@ fn main() {
|
||||
.write();
|
||||
}
|
||||
|
||||
fn update_from_diff(_pre_state: Account, diff_data: Data) -> Result<Data, std::convert::Infallible> {
|
||||
fn update_from_diff(
|
||||
_pre_state: Account,
|
||||
diff_data: Data,
|
||||
) -> Result<Data, std::convert::Infallible> {
|
||||
Ok(diff_data)
|
||||
}
|
||||
|
||||
@@ -48,10 +48,7 @@ fn write(pre_state: AccountWithMetadata, greeting: &[u8]) -> AccountDiffOutput {
|
||||
)
|
||||
}
|
||||
|
||||
fn move_data(
|
||||
from_pre: AccountWithMetadata,
|
||||
to_pre: AccountWithMetadata,
|
||||
) -> Vec<AccountDiffOutput> {
|
||||
fn move_data(from_pre: AccountWithMetadata, to_pre: AccountWithMetadata) -> Vec<AccountDiffOutput> {
|
||||
// Construct the post state account values
|
||||
let from_data: Vec<u8> = from_pre.account.data.clone().into();
|
||||
|
||||
@@ -131,6 +128,9 @@ fn main() {
|
||||
.write();
|
||||
}
|
||||
|
||||
fn update_from_diff(_pre_state: Account, diff_data: Data) -> Result<Data, std::convert::Infallible> {
|
||||
fn update_from_diff(
|
||||
_pre_state: Account,
|
||||
diff_data: Data,
|
||||
) -> Result<Data, std::convert::Infallible> {
|
||||
Ok(diff_data)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user