Commit bd505dd
authored
style: Use numeric constant (#88)
This solves clippy warnings like this:
```
error: usage of a legacy numeric method
--> src/common.rs:418:31
|
418 | Number::from(i32::min_value()).as_i64(),
| ^^^^^^^^^^^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#legacy_numeric_constants
= note: `-D clippy::legacy-numeric-constants` implied by `-D warnings`
= help: to override `-D warnings` add `#[allow(clippy::legacy_numeric_constants)]`
help: use the associated constant instead
|
418 | Number::from(i32::MIN).as_i64(),
| ~~~
```1 parent eb2d753 commit bd505dd
1 file changed
+2
-8
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
414 | 414 | | |
415 | 415 | | |
416 | 416 | | |
417 | | - | |
418 | | - | |
419 | | - | |
420 | | - | |
421 | | - | |
422 | | - | |
423 | | - | |
424 | | - | |
| 417 | + | |
| 418 | + | |
425 | 419 | | |
426 | 420 | | |
427 | 421 | | |
| |||
0 commit comments