求助: ubuntu 安装程序出现错误

2021-02-11 18:28:33 +08:00
 qinmenghuo
https://github.com/lolishinshi/exloli

这个里面给的
cargo install --git https://github.com/Aloxaf/exloli
这个命令使用之后出现了这个错误
error[E0277]: the trait bound `[i64; 3]: std::convert::From<std::vec::Vec<i64>>` is not satisfied
--> src/bot/command.rs:109:47
|
109 | if let Some(v) = v.and_then(|v| TryInto::<[i64; 3]>::try_into(v).ok()) {
| ^^^^^^^^ the trait `std::convert::From<std::vec::Vec<i64>>` is not implemented for `[i64; 3]`
|
= note: required because of the requirements on the impl of `std::convert::Into<[i64; 3]>` for `std::vec::Vec<i64>`
= note: required because of the requirements on the impl of `std::convert::TryFrom<std::vec::Vec<i64>>` for `[i64; 3]`

error[E0277]: the trait bound `[i64; 3]: std::convert::From<std::vec::Vec<i64>>` is not satisfied
--> src/bot/command.rs:109:37
|
109 | if let Some(v) = v.and_then(|v| TryInto::<[i64; 3]>::try_into(v).ok()) {
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ the trait `std::convert::From<std::vec::Vec<i64>>` is not implemented for `[i64; 3]`
|
= note: required because of the requirements on the impl of `std::convert::Into<[i64; 3]>` for `std::vec::Vec<i64>`
= note: required because of the requirements on the impl of `std::convert::TryFrom<std::vec::Vec<i64>>` for `[i64; 3]`
= note: required because of the requirements on the impl of `std::convert::TryInto<[i64; 3]>` for `std::vec::Vec<i64>`

error: aborting due to 2 previous errors

For more information about this error, try `rustc --explain E0277`.
error: failed to compile `exloli v0.5.0 ( https://github.com/Aloxaf/exloli#84445031)`, intermediate artifacts can be found at `/tmp/cargo-installoCOdZU`

完全看不懂是什么意思·····网上也搜不到
求大佬给解释下这个该怎么解决

前面所有编译都是 ok 的,编译完才出现了这个错误
700 次点击
所在节点    问与答
0 条回复

这是一个专为移动设备优化的页面(即为了让你能够在 Google 搜索结果里秒开这个页面),如果你希望参与 V2EX 社区的讨论,你可以继续到 V2EX 上打开本讨论主题的完整版本。

https://www.v2ex.com/t/752967

V2EX 是创意工作者们的社区,是一个分享自己正在做的有趣事物、交流想法,可以遇见新朋友甚至新机会的地方。

V2EX is a community of developers, designers and creative people.

© 2021 V2EX