error[E0599]: no method named set_print_special_tokens found for struct FullParams in the current scope

--> examples/basic_use.rs:23:12
   |
23 |     params.set_print_special_tokens(false);
   |            ^^^^^^^^^^^^^^^^^^^^^^^^ help: there is a method with a similar name: `set_print_special`

For more information about this error, try `rustc --explain E0599`.
This commit is contained in:
reisub0 2022-12-24 22:49:57 +01:00
parent b81c6c9454
commit bc51b4d4fc
No known key found for this signature in database
GPG Key ID: 58333CC586D729B4

View File

@ -20,7 +20,7 @@ pub fn usage() {
// and set the language to translate to to english
params.set_language("en");
// we also explicitly disable anything that prints to stdout
params.set_print_special_tokens(false);
params.set_print_special(false);
params.set_print_progress(false);
params.set_print_realtime(false);
params.set_print_timestamps(false);