catfs icon indicating copy to clipboard operation
catfs copied to clipboard

libc::ENOATTR deprecation

Open gaul opened this issue 4 years ago • 0 comments

The newer libc warns:

warning: use of deprecated constant `libc::ENOATTR`: ENOATTR is not available on Linux; use ENODATA instead
   --> src/catfs/file.rs:274:61
    |
274 |                 if my_errno != libc::ENODATA && my_errno != libc::ENOATTR {
    |                                                             ^^^^^^^^^^^^^
    |
    = note: `#[warn(deprecated)]` on by default

I added this to handle macOS behavior. Some context: https://github.com/rust-lang/libc/issues/1356#issuecomment-494827003

gaul avatar Nov 21 '20 06:11 gaul