Skip to content

Updated f64-to-decimal conversion logic #2436

Updated f64-to-decimal conversion logic

Updated f64-to-decimal conversion logic #2436

Triggered via push May 15, 2024 20:11
Status Success
Total duration 2m 31s
Artifacts

coverage.yml

on: push
Matrix: Build and Test
Fit to window
Zoom out
Zoom in

Annotations

2 errors and 6 warnings
unary minus has lower precedence than method call: src/types/decimal/mod.rs#L586
error: unary minus has lower precedence than method call --> src/types/decimal/mod.rs:586:53 | 586 | #[case((-2i64.pow(53) + 1) as f64, Decimal::new(-2i64.pow(53) + 1, 0))] | ^^^^^^^^^^^^^ help: consider adding parentheses to clarify your intent: `-(2i64.pow(53))` | = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#precedence
unary minus has lower precedence than method call: src/types/decimal/mod.rs#L586
error: unary minus has lower precedence than method call --> src/types/decimal/mod.rs:586:13 | 586 | #[case((-2i64.pow(53) + 1) as f64, Decimal::new(-2i64.pow(53) + 1, 0))] | ^^^^^^^^^^^^^ help: consider adding parentheses to clarify your intent: `-(2i64.pow(53))` | = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#precedence = note: `-D clippy::precedence` implied by `-D warnings` = help: to override `-D warnings` add `#[allow(clippy::precedence)]`
Build and Test (ubuntu-latest)
Node.js 16 actions are deprecated. Please update the following actions to use Node.js 20: actions/checkout@v3, actions-rs/toolchain@v1, actions-rs/cargo@v1, codecov/codecov-action@v3. For more information see: https://github.blog/changelog/2023-09-22-github-actions-transitioning-from-node-16-to-node-20/.
Build and Test (ubuntu-latest)
The following actions uses node12 which is deprecated and will be forced to run on node16: actions-rs/toolchain@v1, actions-rs/cargo@v1. For more info: https://github.blog/changelog/2023-06-13-github-actions-all-actions-will-run-on-node16-instead-of-node12-by-default/
Build and Test (ubuntu-latest)
The `set-output` command is deprecated and will be disabled soon. Please upgrade to using Environment Files. For more information see: https://github.blog/changelog/2022-10-11-github-actions-deprecating-save-state-and-set-output-commands/
Build and Test (ubuntu-latest)
The `set-output` command is deprecated and will be disabled soon. Please upgrade to using Environment Files. For more information see: https://github.blog/changelog/2022-10-11-github-actions-deprecating-save-state-and-set-output-commands/
Build and Test (ubuntu-latest)
The `set-output` command is deprecated and will be disabled soon. Please upgrade to using Environment Files. For more information see: https://github.blog/changelog/2022-10-11-github-actions-deprecating-save-state-and-set-output-commands/
Build and Test (ubuntu-latest)
The `set-output` command is deprecated and will be disabled soon. Please upgrade to using Environment Files. For more information see: https://github.blog/changelog/2022-10-11-github-actions-deprecating-save-state-and-set-output-commands/