Skip to content
This repository has been archived by the owner on Jul 14, 2024. It is now read-only.

代码编译报错 #557

Open
liujingyangself opened this issue Jun 8, 2024 · 1 comment
Open

代码编译报错 #557

liujingyangself opened this issue Jun 8, 2024 · 1 comment

Comments

@liujingyangself
Copy link

小白编译,一直报错,弄不懂怎么改。大家有没有编译好的镜像。
warning: unexpected cfg condition value: cargo-clippy
--> crates/self_update/src/lib.rs:1:13
|
1 | #![cfg_attr(feature = "cargo-clippy", deny(clippy::all))]
| ^^^^^^^^^^^^^^^^^^^^^^^^
|
= note: expected values for feature are: archive-tar, archive-zip, compression-flate2, compression-zip-bzip2, compression-zip-deflate, default, either, flate2, signatures, tar, and zip
= help: consider adding cargo-clippy as a feature in Cargo.toml
= note: see https://doc.rust-lang.org/nightly/rustc/check-cfg/cargo-specifics.html for more information about checking conditional configuration
= note: #[warn(unexpected_cfgs)] on by default

warning: self_update (lib) generated 1 warning
Compiling clap v4.5.6
Compiling toml v0.8.14
Compiling sysctl v0.5.5
Compiling daemonize v0.5.0
error[E0061]: this method takes 0 arguments but 1 argument was supplied
--> crates/openai/src/auth/mod.rs:460:25
|
460 | self.0 = self.0.enable_ech_grease(enable);
| ^^^^^^^^^^^^^^^^^ ------
| |
| unexpected argument of type bool
| help: remove the extra argument
|
note: method defined here
--> /root/.cargo/registry/src/index.crates.io-6f17d22bba15001f/reqwest-impersonate-0.11.84/src/async_impl/client.rs:284:12
|
284 | pub fn enable_ech_grease(mut self) -> ClientBuilder {
| ^^^^^^^^^^^^^^^^^

error[E0061]: this method takes 0 arguments but 1 argument was supplied
--> crates/openai/src/auth/mod.rs:466:25
|
466 | self.0 = self.0.permute_extensions(enable);
| ^^^^^^^^^^^^^^^^^^ ------
| |
| unexpected argument of type bool
| help: remove the extra argument
|
note: method defined here
--> /root/.cargo/registry/src/index.crates.io-6f17d22bba15001f/reqwest-impersonate-0.11.84/src/async_impl/client.rs:291:12
|
291 | pub fn permute_extensions(mut self) -> ClientBuilder {
| ^^^^^^^^^^^^^^^^^^

error[E0061]: this method takes 0 arguments but 1 argument was supplied
--> crates/openai/src/client.rs:350:10
|
350 | .permute_extensions(true)
| ^^^^^^^^^^^^^^^^^^ ----
| |
| unexpected argument of type bool
| help: remove the extra argument
|
note: method defined here
--> /root/.cargo/registry/src/index.crates.io-6f17d22bba15001f/reqwest-impersonate-0.11.84/src/async_impl/client.rs:291:12
|
291 | pub fn permute_extensions(mut self) -> ClientBuilder {
| ^^^^^^^^^^^^^^^^^^

error[E0061]: this method takes 0 arguments but 1 argument was supplied
--> crates/openai/src/client.rs:351:10
|
351 | .enable_ech_grease(true)
| ^^^^^^^^^^^^^^^^^ ----
| |
| unexpected argument of type bool
| help: remove the extra argument
|
note: method defined here
--> /root/.cargo/registry/src/index.crates.io-6f17d22bba15001f/reqwest-impersonate-0.11.84/src/async_impl/client.rs:284:12
|
284 | pub fn enable_ech_grease(mut self) -> ClientBuilder {
| ^^^^^^^^^^^^^^^^^

For more information about this error, try rustc --explain E0061.
error: could not compile openai (lib) due to 4 previous errors

@0x676e67
Copy link
Owner

0x676e67 commented Jun 8, 2024

此库不再维护,有人愿意维护,留下邮箱,给仓库权限

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants