Skip to content

Commit fa24368

Browse files
authored
chore: add unused_async lint, deny unreachable_pub (#299)
1 parent 012577e commit fa24368

File tree

3 files changed

+6
-3
lines changed

3 files changed

+6
-3
lines changed

Cargo.toml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,10 @@ codegen-units = 1
4040
incremental = false
4141

4242
[workspace.lints.rust]
43-
unreachable_pub = "warn"
43+
unreachable_pub = "deny"
44+
45+
[workspace.lints.clippy]
46+
unused_async = "warn"
4447

4548
[workspace.dependencies]
4649
reth = { git = "https://github.com/paradigmxyz/reth", tag = "v1.8.2" }

crates/op-rbuilder/src/bin/tester/main.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ async fn main() -> eyre::Result<()> {
5050
let cli = Cli::parse();
5151

5252
match cli.command {
53-
Commands::Genesis { output } => generate_genesis(output).await,
53+
Commands::Genesis { output } => generate_genesis(output),
5454
Commands::Run { validation, .. } => run_system(validation).await,
5555
Commands::Deposit { address, amount } => {
5656
let engine_api = EngineApi::with_http("http://localhost:4444");

crates/op-rbuilder/src/tests/framework/apis.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -205,7 +205,7 @@ pub trait BlockApi {
205205
) -> RpcResult<Option<alloy_rpc_types_eth::Block>>;
206206
}
207207

208-
pub async fn generate_genesis(output: Option<String>) -> eyre::Result<()> {
208+
pub fn generate_genesis(output: Option<String>) -> eyre::Result<()> {
209209
// Read the template file
210210
let template = include_str!("artifacts/genesis.json.tmpl");
211211

0 commit comments

Comments
 (0)