Skip to content

Commit

Permalink
clippy
Browse files Browse the repository at this point in the history
  • Loading branch information
mihaicalinluca committed Jun 14, 2024
1 parent c3f0731 commit 8ed23e7
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
6 changes: 4 additions & 2 deletions contracts/feature-tests/big-float-features/wasm/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,9 @@
////////////////////////////////////////////////////

// Init: 1
// Endpoints: 70
// Endpoints: 72
// Async Callback (empty): 1
// Total number of exported functions: 72
// Total number of exported functions: 74

#![no_std]

Expand Down Expand Up @@ -54,6 +54,7 @@ multiversx_sc_wasm_adapter::endpoints! {
mul_assign_big_float_ref => mul_assign_big_float_ref
div_assign_big_float => div_assign_big_float
div_assign_big_float_ref => div_assign_big_float_ref
ln_big_float_ref => ln_big_float_ref
new_from_parts_big_float_wrapped => new_from_parts_big_float_wrapped
new_from_frac_big_float_wrapped => new_from_frac_big_float_wrapped
new_from_sci_big_float_wrapped => new_from_sci_big_float_wrapped
Expand Down Expand Up @@ -88,6 +89,7 @@ multiversx_sc_wasm_adapter::endpoints! {
mul_assign_big_float_ref_wrapped => mul_assign_big_float_ref_wrapped
div_assign_big_float_wrapped => div_assign_big_float_wrapped
div_assign_big_float_ref_wrapped => div_assign_big_float_ref_wrapped
ln_big_float_ref_wrapped => ln_big_float_ref_wrapped
)
}

Expand Down
2 changes: 1 addition & 1 deletion framework/base/src/types/managed/basic/big_float.rs
Original file line number Diff line number Diff line change
Expand Up @@ -177,7 +177,7 @@ impl<M: ManagedTypeApi> BigFloat<M> {
}

pub fn ln(&self) -> Self {
if *self == BigFloat::from(1i64) {
if self == &BigFloat::from(1i64) {
return BigFloat::from(0i64);
}

Expand Down

0 comments on commit 8ed23e7

Please sign in to comment.