Merge pull request #24 from negezor/use-pnet-datalink-directly #28
GitHub Actions / clippy
succeeded
Oct 8, 2024 in 1s
clippy
2 warnings
Details
Results
Message level | Amount |
---|---|
Internal compiler error | 0 |
Error | 0 |
Warning | 2 |
Note | 0 |
Help | 0 |
Versions
- rustc 1.81.0 (eeb90cda1 2024-09-04)
- cargo 1.81.0 (2dbb1af80 2024-08-20)
- clippy 0.1.81 (eeb90cd 2024-09-04)
Annotations
Check warning on line 104 in src/sonyflake.rs
github-actions / clippy
use of deprecated method `chrono::DateTime::<Tz>::timestamp_nanos`: use `timestamp_nanos_opt()` instead
warning: use of deprecated method `chrono::DateTime::<Tz>::timestamp_nanos`: use `timestamp_nanos_opt()` instead
--> src/sonyflake.rs:104:44
|
104 | - Duration::from_nanos((Utc::now().timestamp_nanos() % SONYFLAKE_TIME_UNIT) as u64)
| ^^^^^^^^^^^^^^^
Check warning on line 95 in src/sonyflake.rs
github-actions / clippy
use of deprecated method `chrono::DateTime::<Tz>::timestamp_nanos`: use `timestamp_nanos_opt()` instead
warning: use of deprecated method `chrono::DateTime::<Tz>::timestamp_nanos`: use `timestamp_nanos_opt()` instead
--> src/sonyflake.rs:95:10
|
95 | time.timestamp_nanos() / SONYFLAKE_TIME_UNIT
| ^^^^^^^^^^^^^^^
|
= note: `#[warn(deprecated)]` on by default
Loading