Skip to content
This repository has been archived by the owner on Oct 25, 2024. It is now read-only.

Commit

Permalink
clippy
Browse files Browse the repository at this point in the history
  • Loading branch information
ra0x3 committed Oct 5, 2023
1 parent 7691bae commit a9e2e89
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 7 deletions.
2 changes: 1 addition & 1 deletion packages/fuel-indexer-macros/src/decoder.rs
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
use crate::{helpers::*};
use crate::helpers::*;
use async_graphql_parser::types::{
FieldDefinition, ObjectType, TypeDefinition, TypeKind,
};
Expand Down
1 change: 0 additions & 1 deletion packages/fuel-indexer-macros/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,6 @@ pub fn indexer(attrs: TokenStream, item: TokenStream) -> TokenStream {
process_indexer_module(attrs, item)
}


/// Generate a set of tokens for converting predicate types between their ABI-like type
/// (e.g., `Predicate`) and their Entity-like type (e.g., `PredicateEntity`).
pub(crate) fn predicate_tokens(
Expand Down
7 changes: 3 additions & 4 deletions packages/fuel-indexer-types/src/native.rs
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ impl AsRef<[u8]> for PredicateWitnessData {
fn as_ref(&self) -> &[u8] {
// Build slice with all fields
let mut combined = Vec::new();
combined.extend_from_slice(&self.template_commitment.as_slice());
combined.extend_from_slice(self.template_commitment.as_slice());
combined.extend(&self.configuration_schema);
combined.extend_from_slice(&self.output_index.to_le_bytes());
combined.extend_from_slice(&self.input_index.to_le_bytes());
Expand Down Expand Up @@ -187,7 +187,6 @@ impl Predicate {
coin_input: Vec<u8>,
coin_output: Vec<u8>,
) -> Self {
let witness_data = PredicateWitnessData::try_from(witness_data).unwrap();
let coin_input: Option<InputCoin> =
bincode::deserialize(&coin_input).expect("Another bad");
let coin_output: CoinOutput = bincode::deserialize(&coin_output).unwrap();
Expand Down Expand Up @@ -244,8 +243,8 @@ impl Predicate {
witness_data: w.clone(),
coin_input,
coin_output,
spend_tx_hash: hash.clone(),
create_tx_hash: hash.clone(),
spend_tx_hash: hash,
create_tx_hash: hash,
}
})
.collect::<Vec<_>>();
Expand Down
2 changes: 1 addition & 1 deletion packages/fuel-indexer-utils/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ pub use utilities::*;
/// Prelude for Fuel indexers.
pub mod prelude {
pub use crate::utilities::*;
pub use fuel_indexer_macros::{indexer};
pub use fuel_indexer_macros::indexer;
pub use fuel_indexer_plugin::prelude::*;
}

Expand Down

0 comments on commit a9e2e89

Please sign in to comment.