Skip to content

Commit 93ee18e

Browse files
committed
Remove unnecessary mutable ref
1 parent 17b5eb4 commit 93ee18e

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

core/examples/basic.rs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ fn main() {
1717
let handle = core.handle();
1818

1919
let host = Local::new().and_then(|host| {
20-
Command::new(&host, "whoami", None).and_then(|mut cmd| {
20+
Command::new(&host, "whoami", None).and_then(|cmd| {
2121
cmd.exec(&handle).map(|out| {
2222
println!("I'm currently running as {}", String::from_utf8_lossy(&out.stdout).trim());
2323
})
@@ -26,4 +26,3 @@ fn main() {
2626

2727
core.run(host).unwrap();
2828
}
29-

0 commit comments

Comments
 (0)