Skip to content

Members Trailing CommaΒ #18

@gatoWololo

Description

@gatoWololo

Hello, thank you for the great library! I'm finding it very useful.

A small thing I ran into, there can be no trailing comma on the last member:

members {
            process: Option<Child>,
            mount_dir: Option<PathBuf>,
            real_dir: Option<PathBuf>,
        }

With the trailing comma I get the error:

error: expected one of `!` or `::`, found `detfs_setup`
  --> tests/detfs_tests.rs:16:13
   |
16 |     fixture detfs_setup(dir: String) -> PathBuf {
   |             ^^^^^^^^^^^ expected one of `!` or `::` here

error: aborting due to previous error

error: Could not compile `detfs`.

Getting rid of the comma fixes it, but the error does not make it obvious.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions