Logarithm & ManagedDecimal cleanup #1915
template-test-current.yml
on: pull_request
Template tool test - current (unreleased) templates
4m 30s
Annotations
4 errors and 3 warnings
[clippy] framework/scenario/tests/managed_decimal_test.rs#L155:
framework/scenario/tests/managed_decimal_test.rs#L155
error[E0061]: this method takes 0 arguments but 1 argument was supplied
--> framework/scenario/tests/managed_decimal_test.rs:155:26
|
155 | let ln_fixed = fixed.ln(ConstDecimals::<10>); // precision of 10 decimal points
| ^^ -------------------
| |
| unexpected argument of type `multiversx_sc::types::ConstDecimals<10>`
| help: remove the extra argument
|
note: method defined here
--> /home/runner/work/mx-sdk-rs/mx-sdk-rs/framework/base/src/types/managed/wrapped/managed_decimal.rs:116:12
|
116 | pub fn ln(&self) -> Option<i64> {
| ^^
|
[clippy] framework/scenario/tests/managed_decimal_test.rs#L160:
framework/scenario/tests/managed_decimal_test.rs#L160
error[E0308]: mismatched types
--> framework/scenario/tests/managed_decimal_test.rs:160:9
|
160 | / ManagedDecimal::<StaticApi, ConstDecimals<10>>::const_decimals_from_raw(BigUint::from(
161 | | 31355146488u64
162 | | ),)
| |___________^ expected `Option<i64>`, found `ManagedDecimal<VMHooksApi<...>, ...>`
|
= note: expected enum `std::option::Option<i64>`
found struct `ManagedDecimal<VMHooksApi<StaticApiBackend>, ConstDecimals<10>>`
= note: the full type name has been written to '/home/runner/work/mx-sdk-rs/mx-sdk-rs/target/debug/deps/managed_decimal_test-cf2dca825638f08c.long-type-11847918607996814230.txt'
= note: consider using `--verbose` to print the full type name to the console
|
[clippy] framework/scenario/tests/managed_decimal_test.rs#L155:
framework/scenario/tests/managed_decimal_test.rs#L155
error[E0061]: this method takes 0 arguments but 1 argument was supplied
--> framework/scenario/tests/managed_decimal_test.rs:155:26
|
155 | let ln_fixed = fixed.ln(ConstDecimals::<10>); // precision of 10 decimal points
| ^^ -------------------
| |
| unexpected argument of type `multiversx_sc::types::ConstDecimals<10>`
| help: remove the extra argument
|
note: method defined here
--> /home/runner/work/mx-sdk-rs/mx-sdk-rs/framework/base/src/types/managed/wrapped/managed_decimal.rs:116:12
|
116 | pub fn ln(&self) -> Option<i64> {
| ^^
|
[clippy] framework/scenario/tests/managed_decimal_test.rs#L160:
framework/scenario/tests/managed_decimal_test.rs#L160
error[E0308]: mismatched types
--> framework/scenario/tests/managed_decimal_test.rs:160:9
|
160 | / ManagedDecimal::<StaticApi, ConstDecimals<10>>::const_decimals_from_raw(BigUint::from(
161 | | 31355146488u64
162 | | ),)
| |___________^ expected `Option<i64>`, found `ManagedDecimal<VMHooksApi<...>, ...>`
|
= note: expected enum `std::option::Option<i64>`
found struct `ManagedDecimal<VMHooksApi<StaticApiBackend>, ConstDecimals<10>>`
= note: the full type name has been written to '/home/runner/work/mx-sdk-rs/mx-sdk-rs/target/debug/deps/managed_decimal_test-c8b51d5b9a7b9d34.long-type-1926160300941319864.txt'
= note: consider using `--verbose` to print the full type name to the console
|
Template tool test - current (unreleased) templates
Node.js 16 actions are deprecated. Please update the following actions to use Node.js 20: actions/checkout@v3. For more information see: https://github.blog/changelog/2023-09-22-github-actions-transitioning-from-node-16-to-node-20/.
|
Template tool test - current (unreleased) templates
Unexpected input(s) 'default', valid inputs are ['toolchain', 'target', 'components', 'cache', 'cache-workspaces', 'cache-on-failure', 'matcher', 'rustflags']
|
Template tool test - current (unreleased) templates
Unexpected input(s) 'default', valid inputs are ['toolchain', 'target', 'components', 'cache', 'cache-workspaces', 'cache-on-failure', 'matcher', 'rustflags']
|