Thanks to visit codestin.com
Credit goes to github.com

Skip to content

uucore doesn't build on NetBSD #5288

@tertsdiepraam

Description

@tertsdiepraam

See the full report at: nushell/nushell#10435

   Compiling uucore v0.0.21
error[E0308]: mismatched types
   --> /usr/pkgsrc/wip/nushell/work/vendor/uucore-0.0.21/src/lib/features/fs.rs:121:16
    |
111 |     pub fn number_of_links(&self) -> u64 {
    |                                      --- expected `u64` because of return type
...
121 |         return self.0.st_nlink;
    |                ^^^^^^^^^^^^^^^ expected `u64`, found `u32`
    |
help: you can convert a `u32` to a `u64`
    |
121 |         return self.0.st_nlink.into();
    |                               +++++++

For more information about this error, try `rustc --explain E0308`.
error: could not compile `uucore` (lib) due to previous error
warning: build failed, waiting for other jobs to finish...
*** Error code 101

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions