We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 17b5eb4 commit 93ee18eCopy full SHA for 93ee18e
core/examples/basic.rs
@@ -17,7 +17,7 @@ fn main() {
17
let handle = core.handle();
18
19
let host = Local::new().and_then(|host| {
20
- Command::new(&host, "whoami", None).and_then(|mut cmd| {
+ Command::new(&host, "whoami", None).and_then(|cmd| {
21
cmd.exec(&handle).map(|out| {
22
println!("I'm currently running as {}", String::from_utf8_lossy(&out.stdout).trim());
23
})
@@ -26,4 +26,3 @@ fn main() {
26
27
core.run(host).unwrap();
28
}
29
-
0 commit comments