Skip to content
Myr

Shorten `cfg!()` checks

Before adoption: this commit came in with the history the project adopted, so no landing records it.

authored by Simon Engmann · committed by David Peter · parent 6f7d108 · Browse files · 1 file+2 added−2 removed
This commit

State

Before adoption: this commit came in with the history the project adopted, so no landing records it.

Diff stats

1 file+2 added−2 removed

  • other:+2 added−2 removed

1 file+2 added−2 removed

modified:src/app.rs+2 added-2 removed
286 unmodified lines
287 // Make `--one-file-system` available only on Unix and Windows platforms, as per the288 // restrictions on the corresponding option in the `ignore` crate.289 // Provide aliases `mount` and `xdev` for people coming from `find`.290 // It's not pretty, but I'm unaware of a way to make just part of a builder chain conditional291 if cfg!(unix) || cfg!(windows) {291 if cfg!(any(unix, windows)) {292 app.arg(293 arg("one-file-system")294 .long("one-file-system")295 .aliases(&["mount", "xdev"]),
175 unmodified lines
471 results will be shown with respect to the given base path. Note that relative paths \472 which are passed to fd via the positional <path> argument or the '--search-path' option \473 will also be resolved relative to this directory.");474475 if cfg!(unix) || cfg!(windows) {475 if cfg!(any(unix, windows)) {476 doc!(h, "one-file-system"477 , "Don't cross file system boundaries"478 , "By default, fd will traverse the file system tree as far as other options dictate. \479 With this flag, fd ensures that it does not descend into a different file system \
5 unmodified lines