Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

2.0.0 build failure - mismatched types #157

Closed
0323pin opened this issue Apr 28, 2023 · 0 comments · Fixed by #160
Closed

2.0.0 build failure - mismatched types #157

0323pin opened this issue Apr 28, 2023 · 0 comments · Fixed by #160

Comments

@0323pin
Copy link
Contributor

0323pin commented Apr 28, 2023

Hi,

Trying to update our package (NetBSD) to 2.0.0 fails with:

   Compiling erdtree v2.0.0 (/usr/pkgsrc/wip/erdtree/work/erdtree-2.0.0)
warning: unused import: `ptr`
 --> src/fs/xattr.rs:2:48
  |
2 | use std::{os::unix::ffi::OsStrExt, path::Path, ptr};
  |                                                ^^^
  |
  = note: `#[warn(unused_imports)]` on by default

warning: unused import: `listxattr`
  --> src/fs/xattr.rs:25:24
   |
25 |     use libc::{c_char, listxattr};
   |                        ^^^^^^^^^

error[E0308]: mismatched types
  --> src/fs/xattr.rs:24:38
   |
24 | unsafe fn has_xattrs(path: &Path) -> bool {
   |           ----------                 ^^^^ expected `bool`, found `()`
   |           |
   |           implicitly returns `()` as its body has no tail or `return` expression

For more information about this error, try `rustc --explain E0308`.
warning: `erdtree` (bin "erd") generated 2 warnings
error: could not compile `erdtree` due to previous error; 2 warnings emitted
*** Error code 101

Stop.

OS: NetBSD-current (development branch)
Rust: 1.69.0

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant