Skip to content

[1.0] Change MatchOptions::default to match MatchOptions::new #170

@tgross35

Description

@tgross35

glob/src/lib.rs

Lines 1084 to 1091 in 97e5ee9

// FIXME: Consider unity the behavior with `default()` in a next major release.
pub fn new() -> Self {
Self {
case_sensitive: true,
require_literal_separator: false,
require_literal_leading_dot: false,
}
}

The Default trait implementation can call new. new could become const.

We don't really need new if we have default, but I think it's fine to keep.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions