You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Compiling nsh v0.4.2
error[E0061]: this function takes 0 arguments but 1 argument was supplied
--> /home/user/.cargo/registry/src/github.aaakk.us.kg-1ecc6299db9ec823/nsh-0.4.2/src/prompt.rs:131:25
|
131 | let hostname_cstr = unistd::gethostname(&mut hostname_buf).expect("failed to get hostname");
| ^^^^^^^^^^^^^^^^^^^ ----------------- argument of type `&mut [u8; 128]` unexpected
|
note: function defined here
--> /home/user/.cargo/registry/src/github.aaakk.us.kg-1ecc6299db9ec823/nix-0.26.1/src/unistd.rs:1020:8
|
1020 | pub fn gethostname() -> Result<OsString> {
| ^^^^^^^^^^^
help: remove the extra argument
|
131 | let hostname_cstr = unistd::gethostname().expect("failed to get hostname");
|
The text was updated successfully, but these errors were encountered:
The text was updated successfully, but these errors were encountered: