Skip to content

Build failure on Windows #420

@clin1234

Description

@clin1234
   Compiling sysinfo v0.31.2
error[E0061]: this method takes 1 argument but 0 arguments were supplied
   --> src\os\windows.rs:16:13
    |
16  |     sysinfo.refresh_processes();
    |             ^^^^^^^^^^^^^^^^^-- argument #1 of type `ProcessesToUpdate<'_>` is missing
    |
note: method defined here
   --> C:\Users\ךינשגכהד\.cargo\registry\src\index.crates.io-6f17d22bba15001f\sysinfo-0.31.2\src\common\system.rs:287:12
    |
287 |     pub fn refresh_processes(&mut self, processes_to_update: ProcessesT...
    |            ^^^^^^^^^^^^^^^^^
help: provide the argument
    |
16  |     sysinfo.refresh_processes(/* ProcessesToUpdate<'_> */);
    |                              ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

error[E0308]: mismatched types
  --> src\os\windows.rs:28:43
   |
28 |                 .map(|p| ProcessInfo::new(p.name(), p.pid().as_u32()))
   |                          ---------------- ^^^^^^^^ expected `&str`, found `&OsStr`
   |                          |
   |                          arguments to this function are incorrect
   |
   = note: expected reference `&str`
              found reference `&std::ffi::OsStr`
note: associated function defined here
  --> src\os\shared.rs:30:12
   |
30 |     pub fn new(name: &str, pid: u32) -> Self {
   |            ^^^ ----------

Some errors have detailed explanations: E0061, E0308.
For more information about an error, try `rustc --explain E0061`.
error: could not compile `bandwhich` (bin "bandwhich") due to 2 previous errors
error: failed to compile `bandwhich v0.22.2 (https://github.com/imsnif/bandwhich#4dba5634)`, intermediate artifacts can be found at `C:\Users\0BAC~1\AppData\Local\Temp\cargo-installmJLu9n`.
To reuse those artifacts with a future compilation, set the environment variable `CARGO_TARGET_DIR` to that path.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions