Skip to content

Commit

Permalink
Formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
poplexity committed Oct 21, 2024
1 parent fda9b9f commit f61ef8b
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion crates/antelope/tests/chain.rs
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ fn name() {
let zero_name = Name::from_u64(0);
let zero_name_string = zero_name.to_string();
assert_eq!(zero_name_string, "", "Name(0) should be empty string");

let dot_me_name = Name::new_from_str(".me");
let name_name_string = dot_me_name.to_string();

Check failure on line 25 in crates/antelope/tests/chain.rs

View workflow job for this annotation

GitHub Actions / Clippy

unused variable: `name_name_string`

Check warning on line 25 in crates/antelope/tests/chain.rs

View workflow job for this annotation

GitHub Actions / Test Suite

unused variable: `name_name_string`

Check warning on line 25 in crates/antelope/tests/chain.rs

View workflow job for this annotation

GitHub Actions / Test Suite

unused variable: `name_name_string`
assert_eq!(zero_name_string, "me", "Name(0) should be empty string");
Expand Down
4 changes: 2 additions & 2 deletions crates/antelope/tests/ship.rs
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
use crate::utils::ship_types::{ActionTrace, TransactionTrace};
use antelope::chain::Packer;
use antelope::util::{bytes_to_hex, hex_to_bytes};
use crate::utils::ship_types::{ActionTrace, TransactionTrace};

mod utils;

Expand Down Expand Up @@ -37,4 +37,4 @@ fn decode<T: Packer + Default>(raw: &[u8]) -> T {
let mut result = T::default();
result.unpack(raw);
result
}
}
4 changes: 2 additions & 2 deletions crates/antelope/tests/utils/ship_types.rs
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,10 @@ use antelope::chain::varint::VarUint32;
use antelope::chain::{Decoder, Encoder};
use antelope::serializer::packer::Float128;
use antelope::serializer::Packer;
use antelope::util::{bytes_to_hex, hex_to_bytes, slice_copy};

Check failure on line 9 in crates/antelope/tests/utils/ship_types.rs

View workflow job for this annotation

GitHub Actions / Clippy

unused imports: `bytes_to_hex`, `hex_to_bytes`, and `slice_copy`

Check warning on line 9 in crates/antelope/tests/utils/ship_types.rs

View workflow job for this annotation

GitHub Actions / Test Suite

unused imports: `bytes_to_hex`, `hex_to_bytes`, and `slice_copy`

Check warning on line 9 in crates/antelope/tests/utils/ship_types.rs

View workflow job for this annotation

GitHub Actions / Test Suite

unused imports: `bytes_to_hex`, `hex_to_bytes`, and `slice_copy`

Check warning on line 9 in crates/antelope/tests/utils/ship_types.rs

View workflow job for this annotation

GitHub Actions / Test Suite

unused imports: `bytes_to_hex`, `hex_to_bytes`, and `slice_copy`
use antelope::{EnumPacker, StructPacker};
use serde::{Deserialize, Serialize};
use std::option::Option;
use antelope::util::{bytes_to_hex, hex_to_bytes, slice_copy};

#[derive(Debug, Clone, Serialize, Deserialize, EnumPacker)]
pub enum ShipRequest {

Check failure on line 15 in crates/antelope/tests/utils/ship_types.rs

View workflow job for this annotation

GitHub Actions / Clippy

all variants have the same prefix: `Get`
Expand Down Expand Up @@ -610,4 +610,4 @@ pub struct ResourceLimitsConfigV0 {
pub struct BlockSigningAuthority {
pub threshold: u32,
pub keys: Vec<KeyWeight>,
}
}

0 comments on commit f61ef8b

Please sign in to comment.