Instead of using .and_then with an if/else, use .filter and pass the predicate. Saves a few lines. |
||
|---|---|---|
| .. | ||
| src | ||
| Cargo.lock | ||
| Cargo.toml | ||
Instead of using .and_then with an if/else, use .filter and pass the predicate. Saves a few lines. |
||
|---|---|---|
| .. | ||
| src | ||
| Cargo.lock | ||
| Cargo.toml | ||