Skip to content

cargo check --no-default-features --features=aws,azure,gcp,http fails #411

Description

@jder

Describe the bug
Turning on all the object stores and not the fs feature causes a compilation failure.

To Reproduce

$ cargo check --no-default-features --features=aws,azure,gcp,http                                                                                          
    Checking object_store v0.12.2 (/Users/jder/oa/arrow-rs-object-store)
error[E0004]: non-exhaustive patterns: `ObjectStoreScheme::Local` not covered
   --> src/parse.rs:200:23
    |
200 |     let store = match scheme {
    |                       ^^^^^^ pattern `ObjectStoreScheme::Local` not covered
    |
note: `ObjectStoreScheme` defined here
   --> src/parse.rs:66:10
    |
66  | pub enum ObjectStoreScheme {
    |          ^^^^^^^^^^^^^^^^^
67  |     /// Url corresponding to [`LocalFileSystem`]
68  |     Local,
    |     ----- not covered
    = note: the matched value is of type `ObjectStoreScheme`
help: ensure that all possible cases are being handled by adding a match arm with a wildcard pattern or an explicit pattern as shown
    |
220 ~         },
221 +         ObjectStoreScheme::Local => todo!()
    |

For more information about this error, try `rustc --explain E0004`.
error: could not compile `object_store` (lib) due to 1 previous error

Expected behavior
Compiles without error.

Additional context
This is an easy fix, will put up a PR momentarily.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions