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

Code Error: no method named mode found for struct Permissions in the current scope #40

Open
thearian opened this issue May 2, 2023 · 1 comment · May be fixed by #41
Open

Code Error: no method named mode found for struct Permissions in the current scope #40

thearian opened this issue May 2, 2023 · 1 comment · May be fixed by #41

Comments

@thearian
Copy link

thearian commented May 2, 2023

I was trying to build the source with cargo, but it got to the error below:
image

Almost sure it's a code problem, but here is my setup anyways:
OS: Windows 64Bit (X86_64)
Rust version: 1.65.0
tin-summer v1.21.14

@thearian
Copy link
Author

thearian commented May 2, 2023

Figured out that the problem is that permission mode is only accessible in Unix systems and therefore the rust implementation lacks the integration for windows users.
Screenshot 2023-05-03 013504
I opened a PR for the best integration.
But I hope someone fixes this at Rust level. It's a pity that such safe language cares so less for cross platform builds. A simple warning at compile would do the trick

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.

1 participant