Skip to content

Compile error with just tzdb-concatenated #365

@ehuss

Description

@ehuss

The following generates an error when trying to build jiff 0.2.13

[dependencies]
jiff = { version = "0.2.13", default-features=false, features=["tzdb-concatenated"] }

Results in this error:

error[E0599]: no method named `path` found for struct `error::Error` in the current scope
   --> /Users/eric/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/jiff-0.2.13/src/tz/db/concatenated/enabled.rs:282:62
    |
282 |         let file = File::open(path).map_err(|e| Error::io(e).path(path))?;
    |                                                              ^^^^ method not found in `Error`
    |
   ::: /Users/eric/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/jiff-0.2.13/src/error.rs:47:1
    |
47  | pub struct Error {
    | ---------------- method `path` not found for this struct

error[E0599]: no method named `path` found for struct `error::Error` in the current scope
   --> /Users/eric/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/jiff-0.2.13/src/tz/db/concatenated/enabled.rs:538:58
    |
538 |     let file = File::open(path).map_err(|e| Error::io(e).path(path))?;
    |                                                          ^^^^ method not found in `Error`
    |
   ::: /Users/eric/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/jiff-0.2.13/src/error.rs:47:1
    |
47  | pub struct Error {
    | ---------------- method `path` not found for this struct

I don't know if it actually makes sense to have just that one feature enabled, but if not it might be nice to compile_error! with an explanation.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions