if condition:
do this
else if condition2:
do this
else if condition3:
.
.
.
else if condition36:
do this
(edited)git stash
to go back to safe state%appdata%\teeworlds
f1 -> exec deepfly_switch.txt (edited)log
error[E0499]: cannot borrow s as mutable more than once at a time
--> src/main.rs:7:18
|
4 | let s1 = &mut s;
| ------ first mutable borrow occurs here
...
7 | let s2 = &mut s;
| ^^^^^^ second mutable borrow occurs here
...
11 | println!("{} {}", s1, s1);
| -- first borrow later used here
For more information about this error, try rustc --explain E0499.
But s2 goes out of the scope before i use s1, whats wrong?Box<Future>
work for the command registry?for<'f> fn(&'f ctx, &'f msg, &'f args) -> Pin<Box<dyn Future<Output=CommandResult> + Send + 'f>>