Skip to content

Commit

Permalink
refactor: chores, format
Browse files Browse the repository at this point in the history
Signed-off-by: Dmitry Balashov <43530070+0x009922@users.noreply.github.com>
  • Loading branch information
0x009922 committed May 17, 2024
1 parent 91835b0 commit ab863c0
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 7 deletions.
3 changes: 1 addition & 2 deletions client/benches/tps/utils.rs
Original file line number Diff line number Diff line change
@@ -1,8 +1,7 @@
use std::{fmt, fs::File, io::BufReader, path::Path, sync::mpsc, thread, time};

use eyre::{Result, WrapErr};
use iroha_client::{client::Client,crypto::KeyPair,
data_model::prelude::*};
use iroha_client::{client::Client, crypto::KeyPair, data_model::prelude::*};
use iroha_data_model::events::pipeline::{BlockEventFilter, BlockStatus};
use nonzero_ext::nonzero;
use serde::Deserialize;
Expand Down
2 changes: 1 addition & 1 deletion client/tests/integration/permissions.rs
Original file line number Diff line number Diff line change
Expand Up @@ -317,7 +317,7 @@ fn stored_vs_granted_token_payload() -> Result<()> {
let allow_alice_to_set_key_value_in_mouse_asset = Grant::permission(
PermissionToken::new(
"CanSetKeyValueInUserAsset".parse().unwrap(),
json!({ "asset_id": format!("xor#wonderland#{mouse_id}") })
json!({ "asset_id": format!("xor#wonderland#{mouse_id}") }),
),
alice_id,
);
Expand Down
6 changes: 3 additions & 3 deletions data_model/src/isi.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1502,8 +1502,8 @@ pub mod error {
pub mod prelude {
pub use super::{
AssetTransferBox, Burn, BurnBox, ExecuteTrigger, Fail, Grant, GrantBox, InstructionBox,
Log, Mint, MintBox, Register, RegisterBox, RemoveKeyValue, RemoveKeyValueBox,
Revoke, RevokeBox, SetKeyValue, SetKeyValueBox, SetParameter, Transfer, TransferBox,
Unregister, UnregisterBox, Upgrade,
Log, Mint, MintBox, Register, RegisterBox, RemoveKeyValue, RemoveKeyValueBox, Revoke,
RevokeBox, SetKeyValue, SetKeyValueBox, SetParameter, Transfer, TransferBox, Unregister,
UnregisterBox, Upgrade,
};
}
2 changes: 1 addition & 1 deletion data_model/src/permission.rs
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
//! Permission Token and related impls
#[cfg(not(feature = "std"))]
use alloc::{borrow::ToOwned as _, collections::BTreeSet, format, string::String, vec::Vec};
use alloc::{collections::BTreeSet, format, string::String, vec::Vec};
use core::borrow::Borrow;
#[cfg(feature = "std")]
use std::collections::BTreeSet;
Expand Down

0 comments on commit ab863c0

Please sign in to comment.