Skip to content

Derive UI #173

@msrd0

Description

@msrd0

These error messages have poor span:

error[E0277]: the trait bound `influxdb::Timestamp: From<DateTime<Utc>>` is not satisfied
  --> influxdb/tests/derive_integration_tests.rs:16:39
   |
16 | #[cfg_attr(feature = "derive", derive(InfluxDbWriteable))]
   |                                       ^^^^^^^^^^^^^^^^^ the trait `From<DateTime<Utc>>` is not implemented for `influxdb::Timestamp`
   |
   = note: required for `DateTime<Utc>` to implement `Into<influxdb::Timestamp>`
   = note: this error originates in the derive macro `InfluxDbWriteable` (in Nightly builds, run with -Z macro-backtrace for more info)

error[E0277]: the trait bound `influxdb::Timestamp: From<DateTime<Utc>>` is not satisfied
  --> influxdb/tests/derive_integration_tests.rs:27:39
   |
27 | #[cfg_attr(feature = "derive", derive(InfluxDbWriteable))]
   |                                       ^^^^^^^^^^^^^^^^^ the trait `From<DateTime<Utc>>` is not implemented for `influxdb::Timestamp`
   |
   = note: required for `DateTime<Utc>` to implement `Into<influxdb::Timestamp>`
   = note: this error originates in the derive macro `InfluxDbWriteable` (in Nightly builds, run with -Z macro-backtrace for more info)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions