Skip to content

Fixes.

Fixes. #1314

Triggered via push November 12, 2023 23:46
Status Failure
Total duration 1m 35s
Artifacts

rust.yaml

on: push
Fit to window
Zoom out
Zoom in

Annotations

20 errors
lint: src/carbonado/metrics.rs#L117
error[E0433]: failed to resolve: use of undeclared type `NaiveDate` --> src/carbonado/metrics.rs:117:9 | 117 | NaiveDate::from_ymd_opt(2023, 7, 1) | ^^^^^^^^^ use of undeclared type `NaiveDate` | help: consider importing this struct | 1 + use chrono::NaiveDate; |
lint: src/carbonado/metrics.rs#L128
error[E0433]: failed to resolve: use of undeclared type `Duration` --> src/carbonado/metrics.rs:128:37 | 128 | let day_prior = start_day + Duration::days(d - 1); | ^^^^^^^^ use of undeclared type `Duration` | help: consider importing one of these items | 1 + use bitcoin_hashes::_export::_core::time::Duration; | 1 + use chrono::Duration; | 1 + use core::time::Duration; | 1 + use nostr_sdk::prelude::_export::_core::time::Duration; | and 2 other candidates
lint: src/carbonado/metrics.rs#L130
error[E0433]: failed to resolve: use of undeclared type `Duration` --> src/carbonado/metrics.rs:130:53 | 130 | let day = round_datetime_to_day(start_day + Duration::days(d)); | ^^^^^^^^ use of undeclared type `Duration` | help: consider importing one of these items | 1 + use bitcoin_hashes::_export::_core::time::Duration; | 1 + use chrono::Duration; | 1 + use core::time::Duration; | 1 + use nostr_sdk::prelude::_export::_core::time::Duration; | and 2 other candidates
lint: src/carbonado/metrics.rs#L246
error[E0425]: cannot find function `round_datetime_to_day` in this scope --> src/carbonado/metrics.rs:124:19 | 124 | let end_day = round_datetime_to_day(end_day); | ^^^^^^^^^^^^^^^^^^^^^ help: a function with a similar name exists: `round_system_time_to_day` ... 246 | fn round_system_time_to_day(system_time: SystemTime) -> String { | -------------------------------------------------------------- similarly named function `round_system_time_to_day` defined here
lint: src/carbonado/metrics.rs#L124
error[E0425]: cannot find function `round_datetime_to_day` in this scope --> src/carbonado/metrics.rs:124:19 | 124 | let end_day = round_datetime_to_day(end_day); | ^^^^^^^^^^^^^^^^^^^^^ help: a function with a similar name exists: `round_system_time_to_day` ... 246 | fn round_system_time_to_day(system_time: SystemTime) -> String { | -------------------------------------------------------------- similarly named function `round_system_time_to_day` defined here
lint: src/carbonado/metrics.rs#L246
error[E0425]: cannot find function `round_datetime_to_day` in this scope --> src/carbonado/metrics.rs:129:25 | 129 | let day_prior = round_datetime_to_day(day_prior); | ^^^^^^^^^^^^^^^^^^^^^ help: a function with a similar name exists: `round_system_time_to_day` ... 246 | fn round_system_time_to_day(system_time: SystemTime) -> String { | -------------------------------------------------------------- similarly named function `round_system_time_to_day` defined here
lint: src/carbonado/metrics.rs#L129
error[E0425]: cannot find function `round_datetime_to_day` in this scope --> src/carbonado/metrics.rs:129:25 | 129 | let day_prior = round_datetime_to_day(day_prior); | ^^^^^^^^^^^^^^^^^^^^^ help: a function with a similar name exists: `round_system_time_to_day` ... 246 | fn round_system_time_to_day(system_time: SystemTime) -> String { | -------------------------------------------------------------- similarly named function `round_system_time_to_day` defined here
lint: src/carbonado/metrics.rs#L246
error[E0425]: cannot find function `round_datetime_to_day` in this scope --> src/carbonado/metrics.rs:130:19 | 130 | let day = round_datetime_to_day(start_day + Duration::days(d)); | ^^^^^^^^^^^^^^^^^^^^^ help: a function with a similar name exists: `round_system_time_to_day` ... 246 | fn round_system_time_to_day(system_time: SystemTime) -> String { | -------------------------------------------------------------- similarly named function `round_system_time_to_day` defined here
lint: src/carbonado/metrics.rs#L130
error[E0425]: cannot find function `round_datetime_to_day` in this scope --> src/carbonado/metrics.rs:130:19 | 130 | let day = round_datetime_to_day(start_day + Duration::days(d)); | ^^^^^^^^^^^^^^^^^^^^^ help: a function with a similar name exists: `round_system_time_to_day` ... 246 | fn round_system_time_to_day(system_time: SystemTime) -> String { | -------------------------------------------------------------- similarly named function `round_system_time_to_day` defined here
lint
Process completed with exit code 1.
lint-wasm: src/carbonado/metrics.rs#L117
error[E0433]: failed to resolve: use of undeclared type `NaiveDate` --> src/carbonado/metrics.rs:117:9 | 117 | NaiveDate::from_ymd_opt(2023, 7, 1) | ^^^^^^^^^ use of undeclared type `NaiveDate` | help: consider importing this struct | 1 + use chrono::NaiveDate; |
lint-wasm: src/carbonado/metrics.rs#L128
error[E0433]: failed to resolve: use of undeclared type `Duration` --> src/carbonado/metrics.rs:128:37 | 128 | let day_prior = start_day + Duration::days(d - 1); | ^^^^^^^^ use of undeclared type `Duration` | help: consider importing one of these items | 1 + use bitcoin_hashes::_export::_core::time::Duration; | 1 + use chrono::Duration; | 1 + use core::time::Duration; | 1 + use nostr_sdk::prelude::_export::_core::time::Duration; | and 1 other candidate
lint-wasm: src/carbonado/metrics.rs#L130
error[E0433]: failed to resolve: use of undeclared type `Duration` --> src/carbonado/metrics.rs:130:53 | 130 | let day = round_datetime_to_day(start_day + Duration::days(d)); | ^^^^^^^^ use of undeclared type `Duration` | help: consider importing one of these items | 1 + use bitcoin_hashes::_export::_core::time::Duration; | 1 + use chrono::Duration; | 1 + use core::time::Duration; | 1 + use nostr_sdk::prelude::_export::_core::time::Duration; | and 1 other candidate
lint-wasm: src/carbonado/metrics.rs#L246
error[E0425]: cannot find function `round_datetime_to_day` in this scope --> src/carbonado/metrics.rs:124:19 | 124 | let end_day = round_datetime_to_day(end_day); | ^^^^^^^^^^^^^^^^^^^^^ help: a function with a similar name exists: `round_system_time_to_day` ... 246 | fn round_system_time_to_day(system_time: SystemTime) -> String { | -------------------------------------------------------------- similarly named function `round_system_time_to_day` defined here
lint-wasm: src/carbonado/metrics.rs#L124
error[E0425]: cannot find function `round_datetime_to_day` in this scope --> src/carbonado/metrics.rs:124:19 | 124 | let end_day = round_datetime_to_day(end_day); | ^^^^^^^^^^^^^^^^^^^^^ help: a function with a similar name exists: `round_system_time_to_day` ... 246 | fn round_system_time_to_day(system_time: SystemTime) -> String { | -------------------------------------------------------------- similarly named function `round_system_time_to_day` defined here
lint-wasm: src/carbonado/metrics.rs#L246
error[E0425]: cannot find function `round_datetime_to_day` in this scope --> src/carbonado/metrics.rs:129:25 | 129 | let day_prior = round_datetime_to_day(day_prior); | ^^^^^^^^^^^^^^^^^^^^^ help: a function with a similar name exists: `round_system_time_to_day` ... 246 | fn round_system_time_to_day(system_time: SystemTime) -> String { | -------------------------------------------------------------- similarly named function `round_system_time_to_day` defined here
lint-wasm: src/carbonado/metrics.rs#L129
error[E0425]: cannot find function `round_datetime_to_day` in this scope --> src/carbonado/metrics.rs:129:25 | 129 | let day_prior = round_datetime_to_day(day_prior); | ^^^^^^^^^^^^^^^^^^^^^ help: a function with a similar name exists: `round_system_time_to_day` ... 246 | fn round_system_time_to_day(system_time: SystemTime) -> String { | -------------------------------------------------------------- similarly named function `round_system_time_to_day` defined here
lint-wasm: src/carbonado/metrics.rs#L246
error[E0425]: cannot find function `round_datetime_to_day` in this scope --> src/carbonado/metrics.rs:130:19 | 130 | let day = round_datetime_to_day(start_day + Duration::days(d)); | ^^^^^^^^^^^^^^^^^^^^^ help: a function with a similar name exists: `round_system_time_to_day` ... 246 | fn round_system_time_to_day(system_time: SystemTime) -> String { | -------------------------------------------------------------- similarly named function `round_system_time_to_day` defined here
lint-wasm: src/carbonado/metrics.rs#L130
error[E0425]: cannot find function `round_datetime_to_day` in this scope --> src/carbonado/metrics.rs:130:19 | 130 | let day = round_datetime_to_day(start_day + Duration::days(d)); | ^^^^^^^^^^^^^^^^^^^^^ help: a function with a similar name exists: `round_system_time_to_day` ... 246 | fn round_system_time_to_day(system_time: SystemTime) -> String { | -------------------------------------------------------------- similarly named function `round_system_time_to_day` defined here
lint-wasm
Process completed with exit code 1.