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 build failing with error ".set_exclusive(false) method not found in SerialStream" #23

Open
PureRockets opened this issue Feb 11, 2023 · 1 comment

Comments

@PureRockets
Copy link

Compiling on Windows 11 with cargo 1.67.1, could not compile radio-service with error :

error[E0599]: no method named set_exclusive found for struct SerialStream in the current scope

@PureRockets
Copy link
Author

Removing the offending line does allow it to build (and run) but I do get the following compile warning after removing the line:

cargo build
warning: patch for the non root package will be ignored, specify patch at the workspace root:
package: C:\Users\jeff\Documents\Dev\space\car-utility\Cargo.toml
workspace: C:\Users\jeff\Documents\Dev\space\Cargo.toml
Compiling radio-service v0.1.0 (C:\Users\jeff\Documents\Dev\space\local-dev-environment\desktop\radio-service)
warning: variable does not need to be mutable
--> local-dev-environment\desktop\radio-service\src\main.rs:48:9
|
48 | let mut serial_stream = tokio_serial::new(args.serial_device, 115200).open_native_async()?;
| ----^^^^^^^^^^^^^
| |
| help: remove this mut
|
= note: #[warn(unused_mut)] on by default

warning: radio-service (bin "radio-service") generated 1 warning
Finished dev [unoptimized + debuginfo] target(s) in 1.76s

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

1 participant