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

Cargo check fails ion WIndows #36

Open
vidhyasasi opened this issue Jun 13, 2023 · 1 comment
Open

Cargo check fails ion WIndows #36

vidhyasasi opened this issue Jun 13, 2023 · 1 comment

Comments

@vidhyasasi
Copy link

I checked cargo check for the package and I am getting this error

PS C:\Users\Administrator\rust_files\packages\rip> cargo check
Checking rm-improved v0.13.1 (C:\Users\Administrator\rust_files\packages\rip)
error[E0433]: failed to resolve: could not find unix in os
--> src/main.rs:12:14
|
12 | use std::os::unix::fs::{FileTypeExt, PermissionsExt};
| ^^^^ could not find unix in os

error[E0433]: failed to resolve: could not find unix in os
--> src/main.rs:408:18
|
408 | std::os::unix::fs::symlink(target, dest)?;
| ^^^^ could not find unix in os

error[E0599]: no method named is_fifo found for struct FileType in the current scope
--> src/main.rs:400:24
|
400 | } else if filetype.is_fifo() {
| ^^^^^^^ help: there is a method with a similar name: is_file

error[E0599]: no method named mode found for struct Permissions in the current scope
--> src/main.rs:401:43
|
401 | let mode = metadata.permissions().mode();
| ^^^^ method not found in Permissions

Some errors have detailed explanations: E0433, E0599.
For more information about an error, try rustc --explain E0433.
error: could not compile rm-improved (bin "rip") due to 4 previous errors

@bbrewington
Copy link

See: #15

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

No branches or pull requests

2 participants