Skip to content

assert_that! and kin should allow a trailing comma #340

@kupiakos

Description

@kupiakos
assert_that!(
     1,
     eq(1),
);

fails with requires at least a format string argument. It should not try to format an error if there is no format string.

A trailing comma should also be allowed when formatting arguments are specified, as format!("{}", 1,) works.

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