Pastebin
Retrouvez, créez et partagez vos snippets en temps réel.
Rechercher un Pastebin
Aucun paste trouvé.
Créer un paste
Pastebin
Blog
AAAa
Compiling console v0.15.11 Compiling similar v2.7.0 Compiling insta v1.45.1 error[E0061]: this function takes 2 arguments but 1 argument was supplied --> tests/integration_api.rs:9:18 | 9 | let client = TmdbClient::new(key.clone()); | ^^^^^^^^^^^^^^^------------- argument #2 of type `Option<MetadataLocale>` is missing | note: associated function defined here --> /home/mothersphere/KayaBot/src/metadata/providers/tmdb.rs:58:12 | 58 | pub fn new(api_key: impl Into<String>, locale: Option<MetadataLocale... | ^^^ help: provide the argument | 9 | let client = TmdbClient::new(key.clone(), /* Option<MetadataLocale> */); | ++++++++++++++++++++++++++++++ error[E0061]: this function takes 2 arguments but 1 argument was supplied --> tests/integration_api.rs:33:18 | 33 | let client = TheTvDbClient::new(key.clone()); | ^^^^^^^^^^^^^^^^^^------------- argument #2 of type `Option<MetadataLocale>` is missing | note: associated function defined here --> /home/mothersphere/KayaBot/src/metadata/providers/thetvdb.rs:80:12 | 80 | pub fn new(api_key: impl Into<String>, locale: Option<MetadataLocale... | ^^^ help: provide the argument | 33 | let client = TheTvDbClient::new(key.clone(), /* Option<MetadataLocale> */); | ++++++++++++++++++++++++++++++ For more information about this error, try `rustc --explain E0061`. error: could not compile `kayabot` (test "integration_api") due to 2 previous errors warning: build failed, waiting for other jobs to finish... warning: fields `movie_calls` and `movie_response` are never read --> src/metadata/aggregate.rs:440:9 | 437 | struct MockProvider { | ------------ fields in this struct ... 440 | movie_calls: Arc<AtomicUsize>, | ^^^^^^^^^^^ ... 443 | movie_response: Result<MovieMatch, MetadataError>, | ^^^^^^^^^^^^^^ | = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default warning: `kayabot` (bin "kayabot" test) generated 1 warning
Créé il y a 3 semaines.