Skip to content

Commit ead8215

Browse files
committed
cargo fmt
1 parent c0f990e commit ead8215

File tree

17 files changed

+39
-38
lines changed

17 files changed

+39
-38
lines changed

wasm/src/account/compute_key.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,8 +16,8 @@
1616

1717
use super::PrivateKey;
1818
use crate::{
19-
types::{native::ComputeKeyNative, Group, Scalar},
2019
Address,
20+
types::{Group, Scalar, native::ComputeKeyNative},
2121
};
2222

2323
use core::{convert::TryFrom, ops::Deref};
@@ -103,8 +103,8 @@ impl From<&ComputeKeyNative> for ComputeKey {
103103
mod tests {
104104
use super::*;
105105
use crate::{
106-
types::native::{AddressNative, CurrentNetwork},
107106
PrivateKey,
107+
types::native::{AddressNative, CurrentNetwork},
108108
};
109109

110110
use snarkvm_console::network::Network;

wasm/src/account/graph_key.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
// along with the Aleo SDK library. If not, see <https://www.gnu.org/licenses/>.
1616

1717
use super::ViewKey;
18-
use crate::types::{native::GraphKeyNative, Field};
18+
use crate::types::{Field, native::GraphKeyNative};
1919

2020
use core::{convert::TryFrom, fmt, ops::Deref, str::FromStr};
2121
use wasm_bindgen::prelude::*;

wasm/src/account/private_key.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,12 +15,12 @@
1515
// along with the Aleo SDK library. If not, see <https://www.gnu.org/licenses/>.
1616

1717
use crate::{
18-
types::native::{CurrentNetwork, Environment, FromBytes, PrimeField, PrivateKeyNative, ToBytes},
1918
Address,
2019
Encryptor,
2120
PrivateKeyCiphertext,
2221
Signature,
2322
ViewKey,
23+
types::native::{CurrentNetwork, Environment, FromBytes, PrimeField, PrivateKeyNative, ToBytes},
2424
};
2525

2626
use core::{convert::TryInto, fmt, ops::Deref, str::FromStr};

wasm/src/account/signature.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
// You should have received a copy of the GNU General Public License
1515
// along with the Aleo SDK library. If not, see <https://www.gnu.org/licenses/>.
1616

17-
use crate::{types::native::SignatureNative, Address, PrivateKey, Scalar};
17+
use crate::{Address, PrivateKey, Scalar, types::native::SignatureNative};
1818

1919
use core::{fmt, ops::Deref, str::FromStr};
2020
use rand::{SeedableRng, rngs::StdRng};

wasm/src/account/view_key.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
use super::{Address, PrivateKey};
1818
use crate::record::RecordCiphertext;
1919

20-
use crate::{types::native::ViewKeyNative, Scalar};
20+
use crate::{Scalar, types::native::ViewKeyNative};
2121
use core::{convert::TryFrom, fmt, ops::Deref, str::FromStr};
2222
use wasm_bindgen::prelude::*;
2323

wasm/src/ledger/transaction.rs

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -15,10 +15,6 @@
1515
// along with the Aleo SDK library. If not, see <https://www.gnu.org/licenses/>.
1616

1717
use crate::{
18-
input_to_js_value,
19-
object,
20-
output_to_js_value,
21-
types::native::{FromBytes, ToBytes, TransactionNative, U64Native},
2218
Address,
2319
Execution,
2420
Field,
@@ -30,11 +26,15 @@ use crate::{
3026
Transition,
3127
VerifyingKey,
3228
ViewKey,
29+
input_to_js_value,
30+
object,
31+
output_to_js_value,
32+
types::native::{FromBytes, ToBytes, TransactionNative, U64Native},
3333
};
3434

3535
use js_sys::{Array, Object, Reflect, Uint8Array};
3636
use std::{ops::Deref, str::FromStr};
37-
use wasm_bindgen::{prelude::wasm_bindgen, JsValue};
37+
use wasm_bindgen::{JsValue, prelude::wasm_bindgen};
3838

3939
/// Webassembly Representation of an Aleo transaction
4040
///

wasm/src/ledger/transition.rs

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -15,20 +15,20 @@
1515
// along with the Aleo SDK library. If not, see <https://www.gnu.org/licenses/>.
1616

1717
use crate::{
18-
input_to_js_value,
19-
object,
20-
output_to_js_value,
21-
types::native::{FromBytes, ToBytes, TransitionNative},
2218
Field,
2319
Group,
2420
RecordCiphertext,
2521
RecordPlaintext,
2622
ViewKey,
23+
input_to_js_value,
24+
object,
25+
output_to_js_value,
26+
types::native::{FromBytes, ToBytes, TransitionNative},
2727
};
2828

2929
use js_sys::{Array, Reflect, Uint8Array};
3030
use std::{ops::Deref, str::FromStr};
31-
use wasm_bindgen::{prelude::wasm_bindgen, JsValue};
31+
use wasm_bindgen::{JsValue, prelude::wasm_bindgen};
3232

3333
#[wasm_bindgen]
3434
pub struct Transition(TransitionNative);

wasm/src/programs/data/ciphertext.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,11 +15,11 @@
1515
// along with the Aleo SDK library. If not, see <https://www.gnu.org/licenses/>.
1616

1717
use crate::{
18-
native::{CiphertextNative, FromBytes, ToBytes},
1918
Field,
2019
Group,
2120
Plaintext,
2221
ViewKey,
22+
native::{CiphertextNative, FromBytes, ToBytes},
2323
};
2424

2525
use js_sys::Uint8Array;
@@ -131,7 +131,7 @@ impl From<&Ciphertext> for CiphertextNative {
131131
#[cfg(test)]
132132
mod tests {
133133
use super::*;
134-
use crate::{plaintext_to_js_value, PrivateKey, Transition};
134+
use crate::{PrivateKey, Transition, plaintext_to_js_value};
135135
use snarkvm_console::{collections::OrHalt, program::compute_function_id, types::U16};
136136

137137
use crate::types::native::{CurrentNetwork, FieldNative, IdentifierNative, Network, ProgramID};

wasm/src/programs/data/helpers/future.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@
1515
// along with the Aleo SDK library. If not, see <https://www.gnu.org/licenses/>.
1616

1717
use crate::{
18+
Plaintext,
1819
object,
1920
plaintext_to_js_value,
2021
types::native::{ArgumentNative, FutureNative},

wasm/src/programs/data/helpers/input.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
// You should have received a copy of the GNU General Public License
1515
// along with the Aleo SDK library. If not, see <https://www.gnu.org/licenses/>.
1616

17-
use crate::{object, plaintext_to_js_value, types::native::InputNative, Ciphertext, Field, Plaintext};
17+
use crate::{Ciphertext, Field, Plaintext, object, plaintext_to_js_value, types::native::InputNative};
1818

1919
use js_sys::Reflect;
2020
use wasm_bindgen::JsValue;

0 commit comments

Comments
 (0)