Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Make clippy CI pass #161

Merged
merged 3 commits into from
Jan 23, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion parachain-node/src/rpc.rs
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ use std::sync::Arc;

use jsonrpsee::RpcModule;
use parachain_template_runtime::opaque::Block;
pub use sc_rpc::{DenyUnsafe, SubscriptionTaskExecutor};
pub use sc_rpc::DenyUnsafe;
use sc_transaction_pool_api::TransactionPool;
use sp_api::ProvideRuntimeApi;
use sp_block_builder::BlockBuilder;
Expand Down
7 changes: 5 additions & 2 deletions tuxedo-core/src/inherents.rs
Original file line number Diff line number Diff line change
Expand Up @@ -170,7 +170,7 @@ impl<V: Verifier, C: ConstraintChecker<V>, T: TuxedoInherent<V, C> + 'static> In
panic!("Authoring a leaf inherent constraint checker, but multiple previous inherents were supplied.")
}

let previous_inherent = previous_inherents.get(0).cloned();
let previous_inherent = previous_inherents.first().cloned();

vec![<T as TuxedoInherent<V, C>>::create_inherent(
authoring_inherent_data,
Expand Down Expand Up @@ -199,7 +199,10 @@ impl<V: Verifier, C: ConstraintChecker<V>, T: TuxedoInherent<V, C> + 'static> In
.expect("Should be able to put an error.");
return;
}
let inherent = inherents.get(0).expect("Previous inherent exists.").clone();
let inherent = inherents
.first()
.expect("Previous inherent exists.")
.clone();
<T as TuxedoInherent<V, C>>::check_inherent(importing_inherent_data, inherent, results)
}

Expand Down
Loading