Skip to content

Commit

Permalink
clippy
Browse files Browse the repository at this point in the history
  • Loading branch information
altendky committed Jan 9, 2025
1 parent 92d8083 commit e7e939c
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions crates/chia-protocol/src/program.rs
Original file line number Diff line number Diff line change
Expand Up @@ -351,7 +351,7 @@ impl Program {
args: &Bound<'_, PyAny>,
) -> PyResult<(u64, Bound<'a, PyAny>)> {
use clvmr::MEMPOOL_MODE;
self._run(py, max_cost, MEMPOOL_MODE, args)
self.py_run(py, max_cost, MEMPOOL_MODE, args)
}

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

fn _run<'a>(
fn py_run<'a>(
&self,
py: Python<'a>,
max_cost: u64,
Expand Down
2 changes: 1 addition & 1 deletion wheel/src/api.rs
Original file line number Diff line number Diff line change
Expand Up @@ -131,7 +131,7 @@ pub fn get_puzzle_and_solution_for_coin<'a>(
find_amount: u64,
find_ph: Bytes32,
flags: u32,
) -> PyResult<(Bound<'_, PyBytes>, Bound<'_, PyBytes>)> {
) -> PyResult<(Bound<'a, PyBytes>, Bound<'a, PyBytes>)> {
let mut allocator = make_allocator(LIMIT_HEAP);

let program = py_to_slice::<'a>(program);
Expand Down

0 comments on commit e7e939c

Please sign in to comment.