softprops / atty

are you or are you not a tty?
MIT License
274 stars 51 forks source link

Problem: atty won't compile for wasm32-unknown-emscripten target #27

Closed yrashk closed 6 years ago

yrashk commented 6 years ago
40  | pub fn is(stream: Stream) -> bool {
    | --------------------------------- previous definition of the value `is` here
    ...
164 | pub fn is(_stream: Stream) -> bool {
    | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ `is` redefined here
    |

Solution: exclude the first line against this target

softprops commented 6 years ago

looks good. nice catch @yrashk

softprops commented 6 years ago

published a new version with this fix ( 0.2.10 )