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

Build failure on Windows #420

Closed
clin1234 opened this issue Aug 13, 2024 · 1 comment · Fixed by #421
Closed

Build failure on Windows #420

clin1234 opened this issue Aug 13, 2024 · 1 comment · Fixed by #421

Comments

@clin1234
Copy link

   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.
@cyqsimon
Copy link
Collaborator

Oops. Overlooked a compile issue during dependency bumps. Will fix immediately.

cyqsimon added a commit that referenced this issue Aug 13, 2024
cyqsimon added a commit that referenced this issue Aug 13, 2024
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.

2 participants