Closed
Description
Really minor issue, but when building the following, I get a strange fix suggestion which seems incorrect:
#[tokio::main]
async fn main() {
Command::new("git");
}
[package]
name = "replicate"
version = "0.1.0"
edition = "2018"
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
[dependencies]
tokio = { version = "1", features = ["process", "rt-multi-thread", "macros"] }
Compiling replicate v0.1.0 (/home/pleb/replicate)
error[E0433]: failed to resolve: use of undeclared type `Command`
--> src/main.rs:3:5
|
3 | Command::new("git");
| ^^^^^^^ not found in this scope
|
help: consider importing one of these items
|
2 | async use std::process::Command;
| ^^^^^^^^^^^^^^^^^^^^^^^^^^
2 | async use tokio::process::Command;
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
For more information about this error, try `rustc --explain E0433`.
error: could not compile `replicate` due to previous error
pleb@gamey ~/replicate $ rustc --version
rustc 1.56.0-nightly (492723897 2021-07-29)
pleb@gamey ~/replicate $ rustup default
nightly-x86_64-unknown-linux-gnu (default)
The async use
seems to be a bit strange for the suggestion. Nevertheless, have a wonderful day <3
Metadata
Metadata
Assignees
Labels
Type
Projects
Status
Done