fprasx / cargo-unfmt

unformat code into perfect blocks
GNU General Public License v3.0
69 stars 2 forks source link

fix windows error on `std::os::unix::ffi` and `as_os_str().as_bytes()` #4

Closed diniremix closed 7 months ago

diniremix commented 8 months ago

added the cfg target_os attribute,for windows support

streamable video: https://streamable.com/n7gwjp

diniremix commented 7 months ago

done!, thanks for checking 👍

diniremix commented 7 months ago

the cfg target_os attribute has been changed to unix, to avoid conflicts in Gnu/Linux

fprasx commented 7 months ago

Awesome, thank you for the PR!