BurntSushi / walkdir

Rust library for walking directories recursively.
The Unlicense
1.21k stars 106 forks source link

Shorthand initialization #177

Closed vsuryamurthy closed 1 year ago

vsuryamurthy commented 1 year ago

This PR contains shorthand initialization for struct members (https://rust-lang.github.io/rfcs/1682-field-init-shorthand.html) and removes the windows workaround for is_dir() as it has been fixed.

I find the shorthand initialization cleaner. However, there might be a reason for not having it and I am curious to hear your opinion.

BurntSushi commented 1 year ago

It looks like this needs rustfmt run on it?

vsuryamurthy commented 1 year ago

It looks like this needs rustfmt run on it?

I missed a space, fixed it now.

Edit: I think I need to fix more things. On it :)