Skip to content

Commit

Permalink
more for clippy
Browse files Browse the repository at this point in the history
  • Loading branch information
altendky committed Jan 9, 2025
1 parent e7e939c commit 6950982
Show file tree
Hide file tree
Showing 4 changed files with 19 additions and 16 deletions.
23 changes: 11 additions & 12 deletions Cargo.lock
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# This file is automatically @generated by Cargo.
# It is not intended for manual editing.
version = 3
version = 4

[[package]]
name = "addr2line"
Expand Down Expand Up @@ -2497,9 +2497,9 @@ checksum = "9c8d87e72b64a3b4db28d11ce29237c246188f4f51057d65a7eab63b7987e423"

[[package]]
name = "wasm-bindgen"
version = "0.2.95"
version = "0.2.99"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "128d1e363af62632b8eb57219c8fd7877144af57558fb2ef0368d0087bddeb2e"
checksum = "a474f6281d1d70c17ae7aa6a613c87fce69a127e2624002df63dcb39d6cf6396"
dependencies = [
"cfg-if",
"once_cell",
Expand All @@ -2508,13 +2508,12 @@ dependencies = [

[[package]]
name = "wasm-bindgen-backend"
version = "0.2.95"
version = "0.2.99"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "cb6dd4d3ca0ddffd1dd1c9c04f94b868c37ff5fac97c30b97cff2d74fce3a358"
checksum = "5f89bb38646b4f81674e8f5c3fb81b562be1fd936d84320f3264486418519c79"
dependencies = [
"bumpalo",
"log",
"once_cell",
"proc-macro2",
"quote",
"syn",
Expand All @@ -2523,19 +2522,19 @@ dependencies = [

[[package]]
name = "wasm-bindgen-macro"
version = "0.2.95"
version = "0.2.99"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "e79384be7f8f5a9dd5d7167216f022090cf1f9ec128e6e6a482a2cb5c5422c56"
checksum = "2cc6181fd9a7492eef6fef1f33961e3695e4579b9872a6f7c83aee556666d4fe"
dependencies = [
"quote",
"wasm-bindgen-macro-support",
]

[[package]]
name = "wasm-bindgen-macro-support"
version = "0.2.95"
version = "0.2.99"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "26c6ab57572f7a24a4985830b120de1594465e5d500f24afe89e16b4e833ef68"
checksum = "30d7a95b763d3c45903ed6c81f156801839e5ee968bb07e534c44df0fcd330c2"
dependencies = [
"proc-macro2",
"quote",
Expand All @@ -2546,9 +2545,9 @@ dependencies = [

[[package]]
name = "wasm-bindgen-shared"
version = "0.2.95"
version = "0.2.99"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "65fc09f10666a9f147042251e0dda9c18f166ff7de300607007e96bdebc1068d"
checksum = "943aab3fdaaa029a6e0271b35ea10b72b943135afe9bffca82384098ad0e06a6"

[[package]]
name = "web-sys"
Expand Down
2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -155,7 +155,7 @@ clap = "4.5.23"
zstd = "0.13.2"
blocking-threadpool = "1.0.1"
libfuzzer-sys = "0.4"
wasm-bindgen = "0.2.95"
wasm-bindgen = "0.2.99"
openssl = "0.10.68"
k256 = "0.13.4"
p256 = "0.13.2"
Expand Down
1 change: 1 addition & 0 deletions crates/chia-consensus/src/lib.rs
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
#![allow(clippy::large_stack_arrays)]
#![doc = include_str!("../README.md")]

pub mod allocator;
Expand Down
9 changes: 6 additions & 3 deletions crates/chia-protocol/src/program.rs
Original file line number Diff line number Diff line change
Expand Up @@ -351,7 +351,8 @@ impl Program {
args: &Bound<'_, PyAny>,
) -> PyResult<(u64, Bound<'a, PyAny>)> {
use clvmr::MEMPOOL_MODE;
self.py_run(py, max_cost, MEMPOOL_MODE, args)
#[allow(clippy::used_underscore_items)]
self._run(py, max_cost, MEMPOOL_MODE, args)
}

fn run_with_cost<'a>(
Expand All @@ -360,10 +361,12 @@ impl Program {
max_cost: u64,
args: &Bound<'_, PyAny>,
) -> PyResult<(u64, Bound<'a, PyAny>)> {
self.py_run(py, max_cost, 0, args)
#[allow(clippy::used_underscore_items)]
self._run(py, max_cost, 0, args)
}

fn py_run<'a>(
// exposed to python so allowing use of the python private indicator leading underscore
fn _run<'a>(
&self,
py: Python<'a>,
max_cost: u64,
Expand Down

0 comments on commit 6950982

Please sign in to comment.