94 lines
243 KiB
Plaintext
94 lines
243 KiB
Plaintext
{"$message_type":"diagnostic","message":"expected `command` attribute instead of `arg`","code":null,"level":"error","spans":[{"file_name":"src/cli.rs","byte_start":4141,"byte_end":4144,"line_start":119,"line_end":119,"column_start":7,"column_end":10,"is_primary":true,"text":[{"text":" #[arg(long, default_value = \"butterfly-agent\")]","highlight_start":7,"highlight_end":10}],"label":null,"suggested_replacement":null,"suggestion_applicability":null,"expansion":null}],"children":[],"rendered":"\u001b[1m\u001b[91merror\u001b[0m\u001b[1m: expected `command` attribute instead of `arg`\u001b[0m\n \u001b[1m\u001b[94m--> \u001b[0msrc/cli.rs:119:7\n \u001b[1m\u001b[94m|\u001b[0m\n\u001b[1m\u001b[94m119\u001b[0m \u001b[1m\u001b[94m|\u001b[0m #[arg(long, default_value = \"butterfly-agent\")]\n \u001b[1m\u001b[94m|\u001b[0m \u001b[1m\u001b[91m^^^\u001b[0m\n\n"}
|
|
{"$message_type":"diagnostic","message":"failed to resolve: use of unresolved module or unlinked crate `base64`","code":{"code":"E0433","explanation":"An undeclared crate, module, or type was used.\n\nErroneous code example:\n\n```compile_fail,E0433\nlet map = HashMap::new();\n// error: failed to resolve: use of undeclared type `HashMap`\n```\n\nPlease verify you didn't misspell the type/module's name or that you didn't\nforget to import it:\n\n```\nuse std::collections::HashMap; // HashMap has been imported.\nlet map: HashMap<u32, u32> = HashMap::new(); // So it can be used!\n```\n\nIf you've expected to use a crate name:\n\n```compile_fail\nuse ferris_wheel::BigO;\n// error: failed to resolve: use of undeclared module or unlinked crate\n```\n\nMake sure the crate has been added as a dependency in `Cargo.toml`.\n\nTo use a module from your current crate, add the `crate::` prefix to the path.\n"},"level":"error","spans":[{"file_name":"src/capture.rs","byte_start":2958,"byte_end":2964,"line_start":96,"line_end":96,"column_start":13,"column_end":19,"is_primary":true,"text":[{"text":" use base64::{Engine, engine::general_purpose::STANDARD};","highlight_start":13,"highlight_end":19}],"label":"use of unresolved module or unlinked crate `base64`","suggested_replacement":null,"suggestion_applicability":null,"expansion":null}],"children":[{"message":"if you wanted to use a crate named `base64`, use `cargo add base64` to add it to your `Cargo.toml`","code":null,"level":"help","spans":[],"children":[],"rendered":null}],"rendered":"\u001b[1m\u001b[91merror[E0433]\u001b[0m\u001b[1m: failed to resolve: use of unresolved module or unlinked crate `base64`\u001b[0m\n \u001b[1m\u001b[94m--> \u001b[0msrc/capture.rs:96:13\n \u001b[1m\u001b[94m|\u001b[0m\n\u001b[1m\u001b[94m96\u001b[0m \u001b[1m\u001b[94m|\u001b[0m use base64::{Engine, engine::general_purpose::STANDARD};\n \u001b[1m\u001b[94m|\u001b[0m \u001b[1m\u001b[91m^^^^^^\u001b[0m \u001b[1m\u001b[91muse of unresolved module or unlinked crate `base64`\u001b[0m\n \u001b[1m\u001b[94m|\u001b[0m\n \u001b[1m\u001b[94m= \u001b[0m\u001b[1mhelp\u001b[0m: if you wanted to use a crate named `base64`, use `cargo add base64` to add it to your `Cargo.toml`\n\n"}
|
|
{"$message_type":"diagnostic","message":"unresolved import `base64`","code":{"code":"E0432","explanation":"An import was unresolved.\n\nErroneous code example:\n\n```compile_fail,E0432\nuse something::Foo; // error: unresolved import `something::Foo`.\n```\n\nIn Rust 2015, paths in `use` statements are relative to the crate root. To\nimport items relative to the current and parent modules, use the `self::` and\n`super::` prefixes, respectively.\n\nIn Rust 2018 or later, paths in `use` statements are relative to the current\nmodule unless they begin with the name of a crate or a literal `crate::`, in\nwhich case they start from the crate root. As in Rust 2015 code, the `self::`\nand `super::` prefixes refer to the current and parent modules respectively.\n\nAlso verify that you didn't misspell the import name and that the import exists\nin the module from where you tried to import it. Example:\n\n```\nuse self::something::Foo; // Ok.\n\nmod something {\n pub struct Foo;\n}\n# fn main() {}\n```\n\nIf you tried to use a module from an external crate and are using Rust 2015,\nyou may have missed the `extern crate` declaration (which is usually placed in\nthe crate root):\n\n```edition2015\nextern crate core; // Required to use the `core` crate in Rust 2015.\n\nuse core::any;\n# fn main() {}\n```\n\nSince Rust 2018 the `extern crate` declaration is not required and\nyou can instead just `use` it:\n\n```edition2018\nuse core::any; // No extern crate required in Rust 2018.\n# fn main() {}\n```\n"},"level":"error","spans":[{"file_name":"src/capture.rs","byte_start":2958,"byte_end":2964,"line_start":96,"line_end":96,"column_start":13,"column_end":19,"is_primary":true,"text":[{"text":" use base64::{Engine, engine::general_purpose::STANDARD};","highlight_start":13,"highlight_end":19}],"label":"use of unresolved module or unlinked crate `base64`","suggested_replacement":null,"suggestion_applicability":null,"expansion":null}],"children":[{"message":"if you wanted to use a crate named `base64`, use `cargo add base64` to add it to your `Cargo.toml`","code":null,"level":"help","spans":[],"children":[],"rendered":null}],"rendered":"\u001b[1m\u001b[91merror[E0432]\u001b[0m\u001b[1m: unresolved import `base64`\u001b[0m\n \u001b[1m\u001b[94m--> \u001b[0msrc/capture.rs:96:13\n \u001b[1m\u001b[94m|\u001b[0m\n\u001b[1m\u001b[94m96\u001b[0m \u001b[1m\u001b[94m|\u001b[0m use base64::{Engine, engine::general_purpose::STANDARD};\n \u001b[1m\u001b[94m|\u001b[0m \u001b[1m\u001b[91m^^^^^^\u001b[0m \u001b[1m\u001b[91muse of unresolved module or unlinked crate `base64`\u001b[0m\n \u001b[1m\u001b[94m|\u001b[0m\n \u001b[1m\u001b[94m= \u001b[0m\u001b[1mhelp\u001b[0m: if you wanted to use a crate named `base64`, use `cargo add base64` to add it to your `Cargo.toml`\n\n"}
|
|
{"$message_type":"diagnostic","message":"failed to resolve: use of unresolved module or unlinked crate `base64`","code":{"code":"E0433","explanation":"An undeclared crate, module, or type was used.\n\nErroneous code example:\n\n```compile_fail,E0433\nlet map = HashMap::new();\n// error: failed to resolve: use of undeclared type `HashMap`\n```\n\nPlease verify you didn't misspell the type/module's name or that you didn't\nforget to import it:\n\n```\nuse std::collections::HashMap; // HashMap has been imported.\nlet map: HashMap<u32, u32> = HashMap::new(); // So it can be used!\n```\n\nIf you've expected to use a crate name:\n\n```compile_fail\nuse ferris_wheel::BigO;\n// error: failed to resolve: use of undeclared module or unlinked crate\n```\n\nMake sure the crate has been added as a dependency in `Cargo.toml`.\n\nTo use a module from your current crate, add the `crate::` prefix to the path.\n"},"level":"error","spans":[{"file_name":"src/encoder.rs","byte_start":532,"byte_end":538,"line_start":13,"line_end":13,"column_start":5,"column_end":11,"is_primary":true,"text":[{"text":"use base64::{Engine, engine::general_purpose::STANDARD};","highlight_start":5,"highlight_end":11}],"label":"use of unresolved module or unlinked crate `base64`","suggested_replacement":null,"suggestion_applicability":null,"expansion":null}],"children":[{"message":"if you wanted to use a crate named `base64`, use `cargo add base64` to add it to your `Cargo.toml`","code":null,"level":"help","spans":[],"children":[],"rendered":null}],"rendered":"\u001b[1m\u001b[91merror[E0433]\u001b[0m\u001b[1m: failed to resolve: use of unresolved module or unlinked crate `base64`\u001b[0m\n \u001b[1m\u001b[94m--> \u001b[0msrc/encoder.rs:13:5\n \u001b[1m\u001b[94m|\u001b[0m\n\u001b[1m\u001b[94m13\u001b[0m \u001b[1m\u001b[94m|\u001b[0m use base64::{Engine, engine::general_purpose::STANDARD};\n \u001b[1m\u001b[94m|\u001b[0m \u001b[1m\u001b[91m^^^^^^\u001b[0m \u001b[1m\u001b[91muse of unresolved module or unlinked crate `base64`\u001b[0m\n \u001b[1m\u001b[94m|\u001b[0m\n \u001b[1m\u001b[94m= \u001b[0m\u001b[1mhelp\u001b[0m: if you wanted to use a crate named `base64`, use `cargo add base64` to add it to your `Cargo.toml`\n\n"}
|
|
{"$message_type":"diagnostic","message":"unresolved import `base64`","code":{"code":"E0432","explanation":"An import was unresolved.\n\nErroneous code example:\n\n```compile_fail,E0432\nuse something::Foo; // error: unresolved import `something::Foo`.\n```\n\nIn Rust 2015, paths in `use` statements are relative to the crate root. To\nimport items relative to the current and parent modules, use the `self::` and\n`super::` prefixes, respectively.\n\nIn Rust 2018 or later, paths in `use` statements are relative to the current\nmodule unless they begin with the name of a crate or a literal `crate::`, in\nwhich case they start from the crate root. As in Rust 2015 code, the `self::`\nand `super::` prefixes refer to the current and parent modules respectively.\n\nAlso verify that you didn't misspell the import name and that the import exists\nin the module from where you tried to import it. Example:\n\n```\nuse self::something::Foo; // Ok.\n\nmod something {\n pub struct Foo;\n}\n# fn main() {}\n```\n\nIf you tried to use a module from an external crate and are using Rust 2015,\nyou may have missed the `extern crate` declaration (which is usually placed in\nthe crate root):\n\n```edition2015\nextern crate core; // Required to use the `core` crate in Rust 2015.\n\nuse core::any;\n# fn main() {}\n```\n\nSince Rust 2018 the `extern crate` declaration is not required and\nyou can instead just `use` it:\n\n```edition2018\nuse core::any; // No extern crate required in Rust 2018.\n# fn main() {}\n```\n"},"level":"error","spans":[{"file_name":"src/encoder.rs","byte_start":532,"byte_end":538,"line_start":13,"line_end":13,"column_start":5,"column_end":11,"is_primary":true,"text":[{"text":"use base64::{Engine, engine::general_purpose::STANDARD};","highlight_start":5,"highlight_end":11}],"label":"use of unresolved module or unlinked crate `base64`","suggested_replacement":null,"suggestion_applicability":null,"expansion":null}],"children":[{"message":"if you wanted to use a crate named `base64`, use `cargo add base64` to add it to your `Cargo.toml`","code":null,"level":"help","spans":[],"children":[],"rendered":null}],"rendered":"\u001b[1m\u001b[91merror[E0432]\u001b[0m\u001b[1m: unresolved import `base64`\u001b[0m\n \u001b[1m\u001b[94m--> \u001b[0msrc/encoder.rs:13:5\n \u001b[1m\u001b[94m|\u001b[0m\n\u001b[1m\u001b[94m13\u001b[0m \u001b[1m\u001b[94m|\u001b[0m use base64::{Engine, engine::general_purpose::STANDARD};\n \u001b[1m\u001b[94m|\u001b[0m \u001b[1m\u001b[91m^^^^^^\u001b[0m \u001b[1m\u001b[91muse of unresolved module or unlinked crate `base64`\u001b[0m\n \u001b[1m\u001b[94m|\u001b[0m\n \u001b[1m\u001b[94m= \u001b[0m\u001b[1mhelp\u001b[0m: if you wanted to use a crate named `base64`, use `cargo add base64` to add it to your `Cargo.toml`\n\n"}
|
|
{"$message_type":"diagnostic","message":"failed to resolve: could not find `RateControl` in `encoder`","code":{"code":"E0433","explanation":"An undeclared crate, module, or type was used.\n\nErroneous code example:\n\n```compile_fail,E0433\nlet map = HashMap::new();\n// error: failed to resolve: use of undeclared type `HashMap`\n```\n\nPlease verify you didn't misspell the type/module's name or that you didn't\nforget to import it:\n\n```\nuse std::collections::HashMap; // HashMap has been imported.\nlet map: HashMap<u32, u32> = HashMap::new(); // So it can be used!\n```\n\nIf you've expected to use a crate name:\n\n```compile_fail\nuse ferris_wheel::BigO;\n// error: failed to resolve: use of undeclared module or unlinked crate\n```\n\nMake sure the crate has been added as a dependency in `Cargo.toml`.\n\nTo use a module from your current crate, add the `crate::` prefix to the path.\n"},"level":"error","spans":[{"file_name":"src/encoder.rs","byte_start":4491,"byte_end":4502,"line_start":125,"line_end":125,"column_start":45,"column_end":56,"is_primary":true,"text":[{"text":" let rc = openh264::encoder::RateControl::Constant(bitrate_kbps as i32);","highlight_start":45,"highlight_end":56}],"label":"could not find `RateControl` in `encoder`","suggested_replacement":null,"suggestion_applicability":null,"expansion":null}],"children":[],"rendered":"\u001b[1m\u001b[91merror[E0433]\u001b[0m\u001b[1m: failed to resolve: could not find `RateControl` in `encoder`\u001b[0m\n \u001b[1m\u001b[94m--> \u001b[0msrc/encoder.rs:125:45\n \u001b[1m\u001b[94m|\u001b[0m\n\u001b[1m\u001b[94m125\u001b[0m \u001b[1m\u001b[94m|\u001b[0m let rc = openh264::encoder::RateControl::Constant(bitrate_kbps as i32);\n \u001b[1m\u001b[94m|\u001b[0m \u001b[1m\u001b[91m^^^^^^^^^^^\u001b[0m \u001b[1m\u001b[91mcould not find `RateControl` in `encoder`\u001b[0m\n\n"}
|
|
{"$message_type":"diagnostic","message":"failed to resolve: could not find `YUVPixel` in `formats`","code":{"code":"E0433","explanation":"An undeclared crate, module, or type was used.\n\nErroneous code example:\n\n```compile_fail,E0433\nlet map = HashMap::new();\n// error: failed to resolve: use of undeclared type `HashMap`\n```\n\nPlease verify you didn't misspell the type/module's name or that you didn't\nforget to import it:\n\n```\nuse std::collections::HashMap; // HashMap has been imported.\nlet map: HashMap<u32, u32> = HashMap::new(); // So it can be used!\n```\n\nIf you've expected to use a crate name:\n\n```compile_fail\nuse ferris_wheel::BigO;\n// error: failed to resolve: use of undeclared module or unlinked crate\n```\n\nMake sure the crate has been added as a dependency in `Cargo.toml`.\n\nTo use a module from your current crate, add the `crate::` prefix to the path.\n"},"level":"error","spans":[{"file_name":"src/encoder.rs","byte_start":5531,"byte_end":5539,"line_start":149,"line_end":149,"column_start":40,"column_end":48,"is_primary":true,"text":[{"text":" openh264::formats::YUVPixel::from_yuv(y[0], u[0], v[0]), // dummy first pixel","highlight_start":40,"highlight_end":48}],"label":"could not find `YUVPixel` in `formats`","suggested_replacement":null,"suggestion_applicability":null,"expansion":null}],"children":[],"rendered":"\u001b[1m\u001b[91merror[E0433]\u001b[0m\u001b[1m: failed to resolve: could not find `YUVPixel` in `formats`\u001b[0m\n \u001b[1m\u001b[94m--> \u001b[0msrc/encoder.rs:149:40\n \u001b[1m\u001b[94m|\u001b[0m\n\u001b[1m\u001b[94m149\u001b[0m \u001b[1m\u001b[94m|\u001b[0m openh264::formats::YUVPixel::from_yuv(y[0], u[0], v[0]), // dummy first pixel\n \u001b[1m\u001b[94m|\u001b[0m \u001b[1m\u001b[91m^^^^^^^^\u001b[0m \u001b[1m\u001b[91mcould not find `YUVPixel` in `formats`\u001b[0m\n\n"}
|
|
{"$message_type":"diagnostic","message":"cannot find function, tuple struct or tuple variant `Width` in module `openh264::encoder`","code":{"code":"E0425","explanation":"An unresolved name was used.\n\nErroneous code examples:\n\n```compile_fail,E0425\nsomething_that_doesnt_exist::foo;\n// error: unresolved name `something_that_doesnt_exist::foo`\n\n// or:\n\ntrait Foo {\n fn bar() {\n Self; // error: unresolved name `Self`\n }\n}\n\n// or:\n\nlet x = unknown_variable; // error: unresolved name `unknown_variable`\n```\n\nPlease verify that the name wasn't misspelled and ensure that the\nidentifier being referred to is valid for the given situation. Example:\n\n```\nenum something_that_does_exist {\n Foo,\n}\n```\n\nOr:\n\n```\nmod something_that_does_exist {\n pub static foo : i32 = 0i32;\n}\n\nsomething_that_does_exist::foo; // ok!\n```\n\nOr:\n\n```\nlet unknown_variable = 12u32;\nlet x = unknown_variable; // ok!\n```\n\nIf the item is not defined in the current module, it must be imported using a\n`use` statement, like so:\n\n```\n# mod foo { pub fn bar() {} }\n# fn main() {\nuse foo::bar;\nbar();\n# }\n```\n\nIf the item you are importing is not defined in some super-module of the\ncurrent module, then it must also be declared as public (e.g., `pub fn`).\n"},"level":"error","spans":[{"file_name":"src/encoder.rs","byte_start":4637,"byte_end":4642,"line_start":127,"line_end":127,"column_start":40,"column_end":45,"is_primary":true,"text":[{"text":" openh264::encoder::Width(width as i32),","highlight_start":40,"highlight_end":45}],"label":"not found in `openh264::encoder`","suggested_replacement":null,"suggestion_applicability":null,"expansion":null}],"children":[],"rendered":"\u001b[1m\u001b[91merror[E0425]\u001b[0m\u001b[1m: cannot find function, tuple struct or tuple variant `Width` in module `openh264::encoder`\u001b[0m\n \u001b[1m\u001b[94m--> \u001b[0msrc/encoder.rs:127:40\n \u001b[1m\u001b[94m|\u001b[0m\n\u001b[1m\u001b[94m127\u001b[0m \u001b[1m\u001b[94m|\u001b[0m openh264::encoder::Width(width as i32),\n \u001b[1m\u001b[94m|\u001b[0m \u001b[1m\u001b[91m^^^^^\u001b[0m \u001b[1m\u001b[91mnot found in `openh264::encoder`\u001b[0m\n\n"}
|
|
{"$message_type":"diagnostic","message":"cannot find function, tuple struct or tuple variant `Height` in module `openh264::encoder`","code":{"code":"E0425","explanation":"An unresolved name was used.\n\nErroneous code examples:\n\n```compile_fail,E0425\nsomething_that_doesnt_exist::foo;\n// error: unresolved name `something_that_doesnt_exist::foo`\n\n// or:\n\ntrait Foo {\n fn bar() {\n Self; // error: unresolved name `Self`\n }\n}\n\n// or:\n\nlet x = unknown_variable; // error: unresolved name `unknown_variable`\n```\n\nPlease verify that the name wasn't misspelled and ensure that the\nidentifier being referred to is valid for the given situation. Example:\n\n```\nenum something_that_does_exist {\n Foo,\n}\n```\n\nOr:\n\n```\nmod something_that_does_exist {\n pub static foo : i32 = 0i32;\n}\n\nsomething_that_does_exist::foo; // ok!\n```\n\nOr:\n\n```\nlet unknown_variable = 12u32;\nlet x = unknown_variable; // ok!\n```\n\nIf the item is not defined in the current module, it must be imported using a\n`use` statement, like so:\n\n```\n# mod foo { pub fn bar() {} }\n# fn main() {\nuse foo::bar;\nbar();\n# }\n```\n\nIf the item you are importing is not defined in some super-module of the\ncurrent module, then it must also be declared as public (e.g., `pub fn`).\n"},"level":"error","spans":[{"file_name":"src/encoder.rs","byte_start":4697,"byte_end":4703,"line_start":128,"line_end":128,"column_start":40,"column_end":46,"is_primary":true,"text":[{"text":" openh264::encoder::Height(height as i32),","highlight_start":40,"highlight_end":46}],"label":"not found in `openh264::encoder`","suggested_replacement":null,"suggestion_applicability":null,"expansion":null}],"children":[],"rendered":"\u001b[1m\u001b[91merror[E0425]\u001b[0m\u001b[1m: cannot find function, tuple struct or tuple variant `Height` in module `openh264::encoder`\u001b[0m\n \u001b[1m\u001b[94m--> \u001b[0msrc/encoder.rs:128:40\n \u001b[1m\u001b[94m|\u001b[0m\n\u001b[1m\u001b[94m128\u001b[0m \u001b[1m\u001b[94m|\u001b[0m openh264::encoder::Height(height as i32),\n \u001b[1m\u001b[94m|\u001b[0m \u001b[1m\u001b[91m^^^^^^\u001b[0m \u001b[1m\u001b[91mnot found in `openh264::encoder`\u001b[0m\n\n"}
|
|
{"$message_type":"diagnostic","message":"unused import: `EncodedFrame`","code":{"code":"unused_imports","explanation":null},"level":"warning","spans":[{"file_name":"src/main.rs","byte_start":1460,"byte_end":1472,"line_start":40,"line_end":40,"column_start":15,"column_end":27,"is_primary":true,"text":[{"text":"use encoder::{EncodedFrame, EncoderType};","highlight_start":15,"highlight_end":27}],"label":null,"suggested_replacement":null,"suggestion_applicability":null,"expansion":null}],"children":[{"message":"`#[warn(unused_imports)]` (part of `#[warn(unused)]`) on by default","code":null,"level":"note","spans":[],"children":[],"rendered":null},{"message":"remove the unused import","code":null,"level":"help","spans":[{"file_name":"src/main.rs","byte_start":1460,"byte_end":1474,"line_start":40,"line_end":40,"column_start":15,"column_end":29,"is_primary":true,"text":[{"text":"use encoder::{EncodedFrame, EncoderType};","highlight_start":15,"highlight_end":29}],"label":null,"suggested_replacement":"","suggestion_applicability":"MachineApplicable","expansion":null},{"file_name":"src/main.rs","byte_start":1459,"byte_end":1460,"line_start":40,"line_end":40,"column_start":14,"column_end":15,"is_primary":true,"text":[{"text":"use encoder::{EncodedFrame, EncoderType};","highlight_start":14,"highlight_end":15}],"label":null,"suggested_replacement":"","suggestion_applicability":"MachineApplicable","expansion":null},{"file_name":"src/main.rs","byte_start":1485,"byte_end":1486,"line_start":40,"line_end":40,"column_start":40,"column_end":41,"is_primary":true,"text":[{"text":"use encoder::{EncodedFrame, EncoderType};","highlight_start":40,"highlight_end":41}],"label":null,"suggested_replacement":"","suggestion_applicability":"MachineApplicable","expansion":null}],"children":[],"rendered":null}],"rendered":"\u001b[1m\u001b[33mwarning\u001b[0m\u001b[1m: unused import: `EncodedFrame`\u001b[0m\n \u001b[1m\u001b[94m--> \u001b[0msrc/main.rs:40:15\n \u001b[1m\u001b[94m|\u001b[0m\n\u001b[1m\u001b[94m40\u001b[0m \u001b[1m\u001b[94m|\u001b[0m use encoder::{EncodedFrame, EncoderType};\n \u001b[1m\u001b[94m|\u001b[0m \u001b[1m\u001b[33m^^^^^^^^^^^^\u001b[0m\n \u001b[1m\u001b[94m|\u001b[0m\n \u001b[1m\u001b[94m= \u001b[0m\u001b[1mnote\u001b[0m: `#[warn(unused_imports)]` (part of `#[warn(unused)]`) on by default\n\n"}
|
|
{"$message_type":"diagnostic","message":"unused import: `FRAME_HEADER_SIZE`","code":{"code":"unused_imports","explanation":null},"level":"warning","spans":[{"file_name":"src/main.rs","byte_start":1589,"byte_end":1606,"line_start":43,"line_end":43,"column_start":32,"column_end":49,"is_primary":true,"text":[{"text":"use protocol::{ControlMessage, FRAME_HEADER_SIZE};","highlight_start":32,"highlight_end":49}],"label":null,"suggested_replacement":null,"suggestion_applicability":null,"expansion":null}],"children":[{"message":"remove the unused import","code":null,"level":"help","spans":[{"file_name":"src/main.rs","byte_start":1587,"byte_end":1606,"line_start":43,"line_end":43,"column_start":30,"column_end":49,"is_primary":true,"text":[{"text":"use protocol::{ControlMessage, FRAME_HEADER_SIZE};","highlight_start":30,"highlight_end":49}],"label":null,"suggested_replacement":"","suggestion_applicability":"MachineApplicable","expansion":null},{"file_name":"src/main.rs","byte_start":1572,"byte_end":1573,"line_start":43,"line_end":43,"column_start":15,"column_end":16,"is_primary":true,"text":[{"text":"use protocol::{ControlMessage, FRAME_HEADER_SIZE};","highlight_start":15,"highlight_end":16}],"label":null,"suggested_replacement":"","suggestion_applicability":"MachineApplicable","expansion":null},{"file_name":"src/main.rs","byte_start":1606,"byte_end":1607,"line_start":43,"line_end":43,"column_start":49,"column_end":50,"is_primary":true,"text":[{"text":"use protocol::{ControlMessage, FRAME_HEADER_SIZE};","highlight_start":49,"highlight_end":50}],"label":null,"suggested_replacement":"","suggestion_applicability":"MachineApplicable","expansion":null}],"children":[],"rendered":null}],"rendered":"\u001b[1m\u001b[33mwarning\u001b[0m\u001b[1m: unused import: `FRAME_HEADER_SIZE`\u001b[0m\n \u001b[1m\u001b[94m--> \u001b[0msrc/main.rs:43:32\n \u001b[1m\u001b[94m|\u001b[0m\n\u001b[1m\u001b[94m43\u001b[0m \u001b[1m\u001b[94m|\u001b[0m use protocol::{ControlMessage, FRAME_HEADER_SIZE};\n \u001b[1m\u001b[94m|\u001b[0m \u001b[1m\u001b[33m^^^^^^^^^^^^^^^^^\u001b[0m\n\n"}
|
|
{"$message_type":"diagnostic","message":"borrow of moved value: `hb_tx`","code":{"code":"E0382","explanation":"A variable was used after its contents have been moved elsewhere.\n\nErroneous code example:\n\n```compile_fail,E0382\nstruct MyStruct { s: u32 }\n\nfn main() {\n let mut x = MyStruct{ s: 5u32 };\n let y = x;\n x.s = 6;\n println!(\"{}\", x.s);\n}\n```\n\nSince `MyStruct` is a type that is not marked `Copy`, the data gets moved out\nof `x` when we set `y`. This is fundamental to Rust's ownership system: outside\nof workarounds like `Rc`, a value cannot be owned by more than one variable.\n\nSometimes we don't need to move the value. Using a reference, we can let another\nfunction borrow the value without changing its ownership. In the example below,\nwe don't actually have to move our string to `calculate_length`, we can give it\na reference to it with `&` instead.\n\n```\nfn main() {\n let s1 = String::from(\"hello\");\n\n let len = calculate_length(&s1);\n\n println!(\"The length of '{}' is {}.\", s1, len);\n}\n\nfn calculate_length(s: &String) -> usize {\n s.len()\n}\n```\n\nA mutable reference can be created with `&mut`.\n\nSometimes we don't want a reference, but a duplicate. All types marked `Clone`\ncan be duplicated by calling `.clone()`. Subsequent changes to a clone do not\naffect the original variable.\n\nMost types in the standard library are marked `Clone`. The example below\ndemonstrates using `clone()` on a string. `s1` is first set to \"many\", and then\ncopied to `s2`. Then the first character of `s1` is removed, without affecting\n`s2`. \"any many\" is printed to the console.\n\n```\nfn main() {\n let mut s1 = String::from(\"many\");\n let s2 = s1.clone();\n s1.remove(0);\n println!(\"{} {}\", s1, s2);\n}\n```\n\nIf we control the definition of a type, we can implement `Clone` on it ourselves\nwith `#[derive(Clone)]`.\n\nSome types have no ownership semantics at all and are trivial to duplicate. An\nexample is `i32` and the other number types. We don't have to call `.clone()` to\nclone them, because they are marked `Copy` in addition to `Clone`. Implicit\ncloning is more convenient in this case. We can mark our own types `Copy` if\nall their members also are marked `Copy`.\n\nIn the example below, we implement a `Point` type. Because it only stores two\nintegers, we opt-out of ownership semantics with `Copy`. Then we can\n`let p2 = p1` without `p1` being moved.\n\n```\n#[derive(Copy, Clone)]\nstruct Point { x: i32, y: i32 }\n\nfn main() {\n let mut p1 = Point{ x: -1, y: 2 };\n let p2 = p1;\n p1.x = 1;\n println!(\"p1: {}, {}\", p1.x, p1.y);\n println!(\"p2: {}, {}\", p2.x, p2.y);\n}\n```\n\nAlternatively, if we don't control the struct's definition, or mutable shared\nownership is truly required, we can use `Rc` and `RefCell`:\n\n```\nuse std::cell::RefCell;\nuse std::rc::Rc;\n\nstruct MyStruct { s: u32 }\n\nfn main() {\n let mut x = Rc::new(RefCell::new(MyStruct{ s: 5u32 }));\n let y = x.clone();\n x.borrow_mut().s = 6;\n println!(\"{}\", x.borrow().s);\n}\n```\n\nWith this approach, x and y share ownership of the data via the `Rc` (reference\ncount type). `RefCell` essentially performs runtime borrow checking: ensuring\nthat at most one writer or multiple readers can access the data at any one time.\n\nIf you wish to learn more about ownership in Rust, start with the\n[Understanding Ownership][understanding-ownership] chapter in the Book.\n\n[understanding-ownership]: https://doc.rust-lang.org/book/ch04-00-understanding-ownership.html\n"},"level":"error","spans":[{"file_name":"src/main.rs","byte_start":10831,"byte_end":10835,"line_start":306,"line_end":306,"column_start":9,"column_end":13,"is_primary":false,"text":[{"text":" loop {","highlight_start":9,"highlight_end":13}],"label":"inside of this loop","suggested_replacement":null,"suggestion_applicability":null,"expansion":null},{"file_name":"src/main.rs","byte_start":10747,"byte_end":10757,"line_start":304,"line_end":304,"column_start":41,"column_end":51,"is_primary":false,"text":[{"text":" let heartbeat_handle = tokio::spawn(async move {","highlight_start":41,"highlight_end":51}],"label":"value moved here","suggested_replacement":null,"suggestion_applicability":null,"expansion":null},{"file_name":"src/main.rs","byte_start":10888,"byte_end":10893,"line_start":308,"line_end":308,"column_start":16,"column_end":21,"is_primary":false,"text":[{"text":" if hb_tx.send(()).await.is_err() { break; }","highlight_start":16,"highlight_end":21}],"label":"variable moved due to use in coroutine","suggested_replacement":null,"suggestion_applicability":null,"expansion":null},{"file_name":"src/main.rs","byte_start":13910,"byte_end":13915,"line_start":380,"line_end":380,"column_start":13,"column_end":18,"is_primary":true,"text":[{"text":" let _ = hb_tx.send(()).await;","highlight_start":13,"highlight_end":18}],"label":"value borrowed here after move","suggested_replacement":null,"suggestion_applicability":null,"expansion":null},{"file_name":"src/main.rs","byte_start":10663,"byte_end":10668,"line_start":303,"line_end":303,"column_start":10,"column_end":15,"is_primary":false,"text":[{"text":" let (hb_tx, mut hb_rx) = mpsc::channel::<()>(1);","highlight_start":10,"highlight_end":15}],"label":"move occurs because `hb_tx` has type `tokio::sync::mpsc::Sender<()>`, which does not implement the `Copy` trait","suggested_replacement":null,"suggestion_applicability":null,"expansion":null}],"children":[{"message":"consider cloning the value before moving it into the closure","code":null,"level":"help","spans":[{"file_name":"src/main.rs","byte_start":10711,"byte_end":10711,"line_start":304,"line_end":304,"column_start":5,"column_end":5,"is_primary":true,"text":[{"text":" let heartbeat_handle = tokio::spawn(async move {","highlight_start":5,"highlight_end":5}],"label":null,"suggested_replacement":"let value = hb_tx.clone();\n ","suggestion_applicability":"MachineApplicable","expansion":null},{"file_name":"src/main.rs","byte_start":10888,"byte_end":10893,"line_start":308,"line_end":308,"column_start":16,"column_end":21,"is_primary":true,"text":[{"text":" if hb_tx.send(()).await.is_err() { break; }","highlight_start":16,"highlight_end":21}],"label":null,"suggested_replacement":"value","suggestion_applicability":"MachineApplicable","expansion":null}],"children":[],"rendered":null}],"rendered":"\u001b[1m\u001b[91merror[E0382]\u001b[0m\u001b[1m: borrow of moved value: `hb_tx`\u001b[0m\n \u001b[1m\u001b[94m--> \u001b[0msrc/main.rs:380:13\n \u001b[1m\u001b[94m|\u001b[0m\n\u001b[1m\u001b[94m303\u001b[0m \u001b[1m\u001b[94m|\u001b[0m let (hb_tx, mut hb_rx) = mpsc::channel::<()>(1);\n \u001b[1m\u001b[94m|\u001b[0m \u001b[1m\u001b[94m-----\u001b[0m \u001b[1m\u001b[94mmove occurs because `hb_tx` has type `tokio::sync::mpsc::Sender<()>`, which does not implement the `Copy` trait\u001b[0m\n\u001b[1m\u001b[94m304\u001b[0m \u001b[1m\u001b[94m|\u001b[0m let heartbeat_handle = tokio::spawn(async move {\n \u001b[1m\u001b[94m|\u001b[0m \u001b[1m\u001b[94m----------\u001b[0m \u001b[1m\u001b[94mvalue moved here\u001b[0m\n\u001b[1m\u001b[94m305\u001b[0m \u001b[1m\u001b[94m|\u001b[0m let mut interval = tokio::time::interval(hb_interval);\n\u001b[1m\u001b[94m306\u001b[0m \u001b[1m\u001b[94m|\u001b[0m loop {\n \u001b[1m\u001b[94m|\u001b[0m \u001b[1m\u001b[94m----\u001b[0m \u001b[1m\u001b[94minside of this loop\u001b[0m\n\u001b[1m\u001b[94m307\u001b[0m \u001b[1m\u001b[94m|\u001b[0m interval.tick().await;\n\u001b[1m\u001b[94m308\u001b[0m \u001b[1m\u001b[94m|\u001b[0m if hb_tx.send(()).await.is_err() { break; }\n \u001b[1m\u001b[94m|\u001b[0m \u001b[1m\u001b[94m-----\u001b[0m \u001b[1m\u001b[94mvariable moved due to use in coroutine\u001b[0m\n\u001b[1m\u001b[94m...\u001b[0m\n\u001b[1m\u001b[94m380\u001b[0m \u001b[1m\u001b[94m|\u001b[0m let _ = hb_tx.send(()).await;\n \u001b[1m\u001b[94m|\u001b[0m \u001b[1m\u001b[91m^^^^^\u001b[0m \u001b[1m\u001b[91mvalue borrowed here after move\u001b[0m\n \u001b[1m\u001b[94m|\u001b[0m\n\u001b[1m\u001b[96mhelp\u001b[0m: consider cloning the value before moving it into the closure\n \u001b[1m\u001b[94m|\u001b[0m\n\u001b[1m\u001b[94m304\u001b[0m \u001b[92m~ \u001b[0m \u001b[92mlet value = hb_tx.clone();\u001b[0m\n\u001b[1m\u001b[94m305\u001b[0m \u001b[92m~ \u001b[0mlet heartbeat_handle = tokio::spawn(async move {\n\u001b[1m\u001b[94m306\u001b[0m \u001b[1m\u001b[94m|\u001b[0m let mut interval = tokio::time::interval(hb_interval);\n\u001b[1m\u001b[94m307\u001b[0m \u001b[1m\u001b[94m|\u001b[0m loop {\n\u001b[1m\u001b[94m308\u001b[0m \u001b[1m\u001b[94m|\u001b[0m interval.tick().await;\n\u001b[1m\u001b[94m309\u001b[0m \u001b[92m~ \u001b[0m if \u001b[92mvalue\u001b[0m.send(()).await.is_err() { break; }\n \u001b[1m\u001b[94m|\u001b[0m\n\n"}
|
|
{"$message_type":"diagnostic","message":"use of moved value: `capture_tx`","code":{"code":"E0382","explanation":"A variable was used after its contents have been moved elsewhere.\n\nErroneous code example:\n\n```compile_fail,E0382\nstruct MyStruct { s: u32 }\n\nfn main() {\n let mut x = MyStruct{ s: 5u32 };\n let y = x;\n x.s = 6;\n println!(\"{}\", x.s);\n}\n```\n\nSince `MyStruct` is a type that is not marked `Copy`, the data gets moved out\nof `x` when we set `y`. This is fundamental to Rust's ownership system: outside\nof workarounds like `Rc`, a value cannot be owned by more than one variable.\n\nSometimes we don't need to move the value. Using a reference, we can let another\nfunction borrow the value without changing its ownership. In the example below,\nwe don't actually have to move our string to `calculate_length`, we can give it\na reference to it with `&` instead.\n\n```\nfn main() {\n let s1 = String::from(\"hello\");\n\n let len = calculate_length(&s1);\n\n println!(\"The length of '{}' is {}.\", s1, len);\n}\n\nfn calculate_length(s: &String) -> usize {\n s.len()\n}\n```\n\nA mutable reference can be created with `&mut`.\n\nSometimes we don't want a reference, but a duplicate. All types marked `Clone`\ncan be duplicated by calling `.clone()`. Subsequent changes to a clone do not\naffect the original variable.\n\nMost types in the standard library are marked `Clone`. The example below\ndemonstrates using `clone()` on a string. `s1` is first set to \"many\", and then\ncopied to `s2`. Then the first character of `s1` is removed, without affecting\n`s2`. \"any many\" is printed to the console.\n\n```\nfn main() {\n let mut s1 = String::from(\"many\");\n let s2 = s1.clone();\n s1.remove(0);\n println!(\"{} {}\", s1, s2);\n}\n```\n\nIf we control the definition of a type, we can implement `Clone` on it ourselves\nwith `#[derive(Clone)]`.\n\nSome types have no ownership semantics at all and are trivial to duplicate. An\nexample is `i32` and the other number types. We don't have to call `.clone()` to\nclone them, because they are marked `Copy` in addition to `Clone`. Implicit\ncloning is more convenient in this case. We can mark our own types `Copy` if\nall their members also are marked `Copy`.\n\nIn the example below, we implement a `Point` type. Because it only stores two\nintegers, we opt-out of ownership semantics with `Copy`. Then we can\n`let p2 = p1` without `p1` being moved.\n\n```\n#[derive(Copy, Clone)]\nstruct Point { x: i32, y: i32 }\n\nfn main() {\n let mut p1 = Point{ x: -1, y: 2 };\n let p2 = p1;\n p1.x = 1;\n println!(\"p1: {}, {}\", p1.x, p1.y);\n println!(\"p2: {}, {}\", p2.x, p2.y);\n}\n```\n\nAlternatively, if we don't control the struct's definition, or mutable shared\nownership is truly required, we can use `Rc` and `RefCell`:\n\n```\nuse std::cell::RefCell;\nuse std::rc::Rc;\n\nstruct MyStruct { s: u32 }\n\nfn main() {\n let mut x = Rc::new(RefCell::new(MyStruct{ s: 5u32 }));\n let y = x.clone();\n x.borrow_mut().s = 6;\n println!(\"{}\", x.borrow().s);\n}\n```\n\nWith this approach, x and y share ownership of the data via the `Rc` (reference\ncount type). `RefCell` essentially performs runtime borrow checking: ensuring\nthat at most one writer or multiple readers can access the data at any one time.\n\nIf you wish to learn more about ownership in Rust, start with the\n[Understanding Ownership][understanding-ownership] chapter in the Book.\n\n[understanding-ownership]: https://doc.rust-lang.org/book/ch04-00-understanding-ownership.html\n"},"level":"error","spans":[{"file_name":"src/main.rs","byte_start":10288,"byte_end":10295,"line_start":288,"line_end":288,"column_start":54,"column_end":61,"is_primary":false,"text":[{"text":" let capture_handle = tokio::task::spawn_blocking(move || {","highlight_start":54,"highlight_end":61}],"label":"value moved into closure here","suggested_replacement":null,"suggestion_applicability":null,"expansion":null},{"file_name":"src/main.rs","byte_start":10339,"byte_end":10349,"line_start":290,"line_end":290,"column_start":13,"column_end":23,"is_primary":false,"text":[{"text":" capture_tx,","highlight_start":13,"highlight_end":23}],"label":"variable moved due to use in closure","suggested_replacement":null,"suggestion_applicability":null,"expansion":null},{"file_name":"src/main.rs","byte_start":13941,"byte_end":13951,"line_start":381,"line_end":381,"column_start":10,"column_end":20,"is_primary":true,"text":[{"text":" drop(capture_tx);","highlight_start":10,"highlight_end":20}],"label":"value used here after move","suggested_replacement":null,"suggestion_applicability":null,"expansion":null},{"file_name":"src/main.rs","byte_start":9864,"byte_end":9874,"line_start":279,"line_end":279,"column_start":10,"column_end":20,"is_primary":false,"text":[{"text":" let (capture_tx, mut capture_rx) = mpsc::channel::<CaptureEvent>(16);","highlight_start":10,"highlight_end":20}],"label":"move occurs because `capture_tx` has type `tokio::sync::mpsc::Sender<CaptureEvent>`, which does not implement the `Copy` trait","suggested_replacement":null,"suggestion_applicability":null,"expansion":null}],"children":[{"message":"consider changing this parameter type in function `capture_encode_loop` to borrow instead if owning the value isn't necessary","code":null,"level":"note","spans":[{"file_name":"src/main.rs","byte_start":15457,"byte_end":15483,"line_start":428,"line_end":428,"column_start":9,"column_end":35,"is_primary":true,"text":[{"text":" tx: mpsc::Sender<CaptureEvent>,","highlight_start":9,"highlight_end":35}],"label":"this parameter takes ownership of the value","suggested_replacement":null,"suggestion_applicability":null,"expansion":null},{"file_name":"src/main.rs","byte_start":15428,"byte_end":15447,"line_start":427,"line_end":427,"column_start":4,"column_end":23,"is_primary":false,"text":[{"text":"fn capture_encode_loop(","highlight_start":4,"highlight_end":23}],"label":"in this function","suggested_replacement":null,"suggestion_applicability":null,"expansion":null}],"children":[],"rendered":null},{"message":"consider cloning the value before moving it into the closure","code":null,"level":"help","spans":[{"file_name":"src/main.rs","byte_start":10239,"byte_end":10239,"line_start":288,"line_end":288,"column_start":5,"column_end":5,"is_primary":true,"text":[{"text":" let capture_handle = tokio::task::spawn_blocking(move || {","highlight_start":5,"highlight_end":5}],"label":null,"suggested_replacement":"let value = capture_tx.clone();\n ","suggestion_applicability":"MachineApplicable","expansion":null},{"file_name":"src/main.rs","byte_start":10339,"byte_end":10349,"line_start":290,"line_end":290,"column_start":13,"column_end":23,"is_primary":true,"text":[{"text":" capture_tx,","highlight_start":13,"highlight_end":23}],"label":null,"suggested_replacement":"value","suggestion_applicability":"MachineApplicable","expansion":null}],"children":[],"rendered":null}],"rendered":"\u001b[1m\u001b[91merror[E0382]\u001b[0m\u001b[1m: use of moved value: `capture_tx`\u001b[0m\n \u001b[1m\u001b[94m--> \u001b[0msrc/main.rs:381:10\n \u001b[1m\u001b[94m|\u001b[0m\n\u001b[1m\u001b[94m279\u001b[0m \u001b[1m\u001b[94m|\u001b[0m let (capture_tx, mut capture_rx) = mpsc::channel::<CaptureEvent>(16);\n \u001b[1m\u001b[94m|\u001b[0m \u001b[1m\u001b[94m----------\u001b[0m \u001b[1m\u001b[94mmove occurs because `capture_tx` has type `tokio::sync::mpsc::Sender<CaptureEvent>`, which does not implement the `Copy` trait\u001b[0m\n\u001b[1m\u001b[94m...\u001b[0m\n\u001b[1m\u001b[94m288\u001b[0m \u001b[1m\u001b[94m|\u001b[0m let capture_handle = tokio::task::spawn_blocking(move || {\n \u001b[1m\u001b[94m|\u001b[0m \u001b[1m\u001b[94m-------\u001b[0m \u001b[1m\u001b[94mvalue moved into closure here\u001b[0m\n\u001b[1m\u001b[94m289\u001b[0m \u001b[1m\u001b[94m|\u001b[0m capture_encode_loop(\n\u001b[1m\u001b[94m290\u001b[0m \u001b[1m\u001b[94m|\u001b[0m capture_tx,\n \u001b[1m\u001b[94m|\u001b[0m \u001b[1m\u001b[94m----------\u001b[0m \u001b[1m\u001b[94mvariable moved due to use in closure\u001b[0m\n\u001b[1m\u001b[94m...\u001b[0m\n\u001b[1m\u001b[94m381\u001b[0m \u001b[1m\u001b[94m|\u001b[0m drop(capture_tx);\n \u001b[1m\u001b[94m|\u001b[0m \u001b[1m\u001b[91m^^^^^^^^^^\u001b[0m \u001b[1m\u001b[91mvalue used here after move\u001b[0m\n \u001b[1m\u001b[94m|\u001b[0m\n\u001b[1m\u001b[92mnote\u001b[0m: consider changing this parameter type in function `capture_encode_loop` to borrow instead if owning the value isn't necessary\n \u001b[1m\u001b[94m--> \u001b[0msrc/main.rs:428:9\n \u001b[1m\u001b[94m|\u001b[0m\n\u001b[1m\u001b[94m427\u001b[0m \u001b[1m\u001b[94m|\u001b[0m fn capture_encode_loop(\n \u001b[1m\u001b[94m|\u001b[0m \u001b[1m\u001b[94m-------------------\u001b[0m \u001b[1m\u001b[94min this function\u001b[0m\n\u001b[1m\u001b[94m428\u001b[0m \u001b[1m\u001b[94m|\u001b[0m tx: mpsc::Sender<CaptureEvent>,\n \u001b[1m\u001b[94m|\u001b[0m \u001b[1m\u001b[92m^^^^^^^^^^^^^^^^^^^^^^^^^^\u001b[0m \u001b[1m\u001b[92mthis parameter takes ownership of the value\u001b[0m\n\u001b[1m\u001b[96mhelp\u001b[0m: consider cloning the value before moving it into the closure\n \u001b[1m\u001b[94m|\u001b[0m\n\u001b[1m\u001b[94m288\u001b[0m \u001b[92m~ \u001b[0m \u001b[92mlet value = capture_tx.clone();\u001b[0m\n\u001b[1m\u001b[94m289\u001b[0m \u001b[92m~ \u001b[0mlet capture_handle = tokio::task::spawn_blocking(move || {\n\u001b[1m\u001b[94m290\u001b[0m \u001b[1m\u001b[94m|\u001b[0m capture_encode_loop(\n\u001b[1m\u001b[94m291\u001b[0m \u001b[92m~ \u001b[0m \u001b[92mvalue\u001b[0m,\n \u001b[1m\u001b[94m|\u001b[0m\n\n"}
|
|
{"$message_type":"diagnostic","message":"struct takes 2 generic arguments but 1 generic argument was supplied","code":{"code":"E0107","explanation":"An incorrect number of generic arguments was provided.\n\nErroneous code example:\n\n```compile_fail,E0107\nstruct Foo<T> { x: T }\n\nstruct Bar { x: Foo } // error: wrong number of type arguments:\n // expected 1, found 0\nstruct Baz<S, T> { x: Foo<S, T> } // error: wrong number of type arguments:\n // expected 1, found 2\n\nfn foo<T, U>(x: T, y: U) {}\nfn f() {}\n\nfn main() {\n let x: bool = true;\n foo::<bool>(x); // error: wrong number of type arguments:\n // expected 2, found 1\n foo::<bool, i32, i32>(x, 2, 4); // error: wrong number of type arguments:\n // expected 2, found 3\n f::<'static>(); // error: wrong number of lifetime arguments\n // expected 0, found 1\n}\n```\n\nWhen using/declaring an item with generic arguments, you must provide the exact\nsame number:\n\n```\nstruct Foo<T> { x: T }\n\nstruct Bar<T> { x: Foo<T> } // ok!\nstruct Baz<S, T> { x: Foo<S>, y: Foo<T> } // ok!\n\nfn foo<T, U>(x: T, y: U) {}\nfn f() {}\n\nfn main() {\n let x: bool = true;\n foo::<bool, u32>(x, 12); // ok!\n f(); // ok!\n}\n```\n"},"level":"error","spans":[{"file_name":"src/capture.rs","byte_start":3381,"byte_end":3392,"line_start":109,"line_end":109,"column_start":26,"column_end":37,"is_primary":true,"text":[{"text":" let img_buffer = ImageBuffer::<Rgb<u8>>::from_raw(","highlight_start":26,"highlight_end":37}],"label":"expected 2 generic arguments","suggested_replacement":null,"suggestion_applicability":null,"expansion":null},{"file_name":"src/capture.rs","byte_start":3395,"byte_end":3402,"line_start":109,"line_end":109,"column_start":40,"column_end":47,"is_primary":false,"text":[{"text":" let img_buffer = ImageBuffer::<Rgb<u8>>::from_raw(","highlight_start":40,"highlight_end":47}],"label":"supplied 1 generic argument","suggested_replacement":null,"suggestion_applicability":null,"expansion":null}],"children":[{"message":"struct defined here, with 2 generic parameters: `P`, `Container`","code":null,"level":"note","spans":[{"file_name":"/home/z/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/image-0.25.10/src/images/buffer.rs","byte_start":16884,"byte_end":16885,"line_start":661,"line_end":661,"column_start":24,"column_end":25,"is_primary":false,"text":[{"text":"pub struct ImageBuffer<P: Pixel, Container> {","highlight_start":24,"highlight_end":25}],"label":"","suggested_replacement":null,"suggestion_applicability":null,"expansion":null},{"file_name":"/home/z/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/image-0.25.10/src/images/buffer.rs","byte_start":16894,"byte_end":16903,"line_start":661,"line_end":661,"column_start":34,"column_end":43,"is_primary":false,"text":[{"text":"pub struct ImageBuffer<P: Pixel, Container> {","highlight_start":34,"highlight_end":43}],"label":"","suggested_replacement":null,"suggestion_applicability":null,"expansion":null},{"file_name":"/home/z/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/image-0.25.10/src/images/buffer.rs","byte_start":16872,"byte_end":16883,"line_start":661,"line_end":661,"column_start":12,"column_end":23,"is_primary":true,"text":[{"text":"pub struct ImageBuffer<P: Pixel, Container> {","highlight_start":12,"highlight_end":23}],"label":null,"suggested_replacement":null,"suggestion_applicability":null,"expansion":null}],"children":[],"rendered":null},{"message":"add missing generic argument","code":null,"level":"help","spans":[{"file_name":"src/capture.rs","byte_start":3402,"byte_end":3402,"line_start":109,"line_end":109,"column_start":47,"column_end":47,"is_primary":true,"text":[{"text":" let img_buffer = ImageBuffer::<Rgb<u8>>::from_raw(","highlight_start":47,"highlight_end":47}],"label":null,"suggested_replacement":", Container","suggestion_applicability":"HasPlaceholders","expansion":null}],"children":[],"rendered":null}],"rendered":"\u001b[1m\u001b[91merror[E0107]\u001b[0m\u001b[1m: struct takes 2 generic arguments but 1 generic argument was supplied\u001b[0m\n \u001b[1m\u001b[94m--> \u001b[0msrc/capture.rs:109:26\n \u001b[1m\u001b[94m|\u001b[0m\n\u001b[1m\u001b[94m109\u001b[0m \u001b[1m\u001b[94m|\u001b[0m let img_buffer = ImageBuffer::<Rgb<u8>>::from_raw(\n \u001b[1m\u001b[94m|\u001b[0m \u001b[1m\u001b[91m^^^^^^^^^^^\u001b[0m \u001b[1m\u001b[94m-------\u001b[0m \u001b[1m\u001b[94msupplied 1 generic argument\u001b[0m\n \u001b[1m\u001b[94m|\u001b[0m \u001b[1m\u001b[91m|\u001b[0m\n \u001b[1m\u001b[94m|\u001b[0m \u001b[1m\u001b[91mexpected 2 generic arguments\u001b[0m\n \u001b[1m\u001b[94m|\u001b[0m\n\u001b[1m\u001b[92mnote\u001b[0m: struct defined here, with 2 generic parameters: `P`, `Container`\n \u001b[1m\u001b[94m--> \u001b[0m/home/z/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/image-0.25.10/src/images/buffer.rs:661:12\n \u001b[1m\u001b[94m|\u001b[0m\n\u001b[1m\u001b[94m661\u001b[0m \u001b[1m\u001b[94m|\u001b[0m pub struct ImageBuffer<P: Pixel, Container> {\n \u001b[1m\u001b[94m|\u001b[0m \u001b[1m\u001b[92m^^^^^^^^^^^\u001b[0m \u001b[1m\u001b[94m-\u001b[0m \u001b[1m\u001b[94m---------\u001b[0m\n\u001b[1m\u001b[96mhelp\u001b[0m: add missing generic argument\n \u001b[1m\u001b[94m|\u001b[0m\n\u001b[1m\u001b[94m109\u001b[0m \u001b[1m\u001b[94m| \u001b[0m let img_buffer = ImageBuffer::<Rgb<u8>\u001b[92m, Container\u001b[0m>::from_raw(\n \u001b[1m\u001b[94m|\u001b[0m \u001b[92m+++++++++++\u001b[0m\n\n"}
|
|
{"$message_type":"diagnostic","message":"no method named `env` found for struct `Arg` in the current scope","code":{"code":"E0599","explanation":"This error occurs when a method is used on a type which doesn't implement it:\n\nErroneous code example:\n\n```compile_fail,E0599\nstruct Mouth;\n\nlet x = Mouth;\nx.chocolate(); // error: no method named `chocolate` found for type `Mouth`\n // in the current scope\n```\n\nIn this case, you need to implement the `chocolate` method to fix the error:\n\n```\nstruct Mouth;\n\nimpl Mouth {\n fn chocolate(&self) { // We implement the `chocolate` method here.\n println!(\"Hmmm! I love chocolate!\");\n }\n}\n\nlet x = Mouth;\nx.chocolate(); // ok!\n```\n"},"level":"error","spans":[{"file_name":"src/config.rs","byte_start":1040,"byte_end":1043,"line_start":22,"line_end":22,"column_start":56,"column_end":59,"is_primary":true,"text":[{"text":" #[arg(long, default_value = \"ws://localhost:8080\", env = \"BUTTERFLY_SERVER\")]","highlight_start":56,"highlight_end":59}],"label":"method not found in `Arg`","suggested_replacement":null,"suggestion_applicability":null,"expansion":null}],"children":[],"rendered":"\u001b[1m\u001b[91merror[E0599]\u001b[0m\u001b[1m: no method named `env` found for struct `Arg` in the current scope\u001b[0m\n \u001b[1m\u001b[94m--> \u001b[0msrc/config.rs:22:56\n \u001b[1m\u001b[94m|\u001b[0m\n\u001b[1m\u001b[94m22\u001b[0m \u001b[1m\u001b[94m|\u001b[0m #[arg(long, default_value = \"ws://localhost:8080\", env = \"BUTTERFLY_SERVER\")]\n \u001b[1m\u001b[94m|\u001b[0m \u001b[1m\u001b[91m^^^\u001b[0m \u001b[1m\u001b[91mmethod not found in `Arg`\u001b[0m\n\n"}
|
|
{"$message_type":"diagnostic","message":"no method named `env` found for struct `Arg` in the current scope","code":{"code":"E0599","explanation":"This error occurs when a method is used on a type which doesn't implement it:\n\nErroneous code example:\n\n```compile_fail,E0599\nstruct Mouth;\n\nlet x = Mouth;\nx.chocolate(); // error: no method named `chocolate` found for type `Mouth`\n // in the current scope\n```\n\nIn this case, you need to implement the `chocolate` method to fix the error:\n\n```\nstruct Mouth;\n\nimpl Mouth {\n fn chocolate(&self) { // We implement the `chocolate` method here.\n println!(\"Hmmm! I love chocolate!\");\n }\n}\n\nlet x = Mouth;\nx.chocolate(); // ok!\n```\n"},"level":"error","spans":[{"file_name":"src/config.rs","byte_start":1245,"byte_end":1248,"line_start":27,"line_end":27,"column_start":17,"column_end":20,"is_primary":true,"text":[{"text":" #[arg(long, env = \"BUTTERFLY_SESSION_ID\")]","highlight_start":17,"highlight_end":20}],"label":"method not found in `Arg`","suggested_replacement":null,"suggestion_applicability":null,"expansion":null}],"children":[],"rendered":"\u001b[1m\u001b[91merror[E0599]\u001b[0m\u001b[1m: no method named `env` found for struct `Arg` in the current scope\u001b[0m\n \u001b[1m\u001b[94m--> \u001b[0msrc/config.rs:27:17\n \u001b[1m\u001b[94m|\u001b[0m\n\u001b[1m\u001b[94m27\u001b[0m \u001b[1m\u001b[94m|\u001b[0m #[arg(long, env = \"BUTTERFLY_SESSION_ID\")]\n \u001b[1m\u001b[94m|\u001b[0m \u001b[1m\u001b[91m^^^\u001b[0m \u001b[1m\u001b[91mmethod not found in `Arg`\u001b[0m\n\n"}
|
|
{"$message_type":"diagnostic","message":"no method named `env` found for struct `Arg` in the current scope","code":{"code":"E0599","explanation":"This error occurs when a method is used on a type which doesn't implement it:\n\nErroneous code example:\n\n```compile_fail,E0599\nstruct Mouth;\n\nlet x = Mouth;\nx.chocolate(); // error: no method named `chocolate` found for type `Mouth`\n // in the current scope\n```\n\nIn this case, you need to implement the `chocolate` method to fix the error:\n\n```\nstruct Mouth;\n\nimpl Mouth {\n fn chocolate(&self) { // We implement the `chocolate` method here.\n println!(\"Hmmm! I love chocolate!\");\n }\n}\n\nlet x = Mouth;\nx.chocolate(); // ok!\n```\n"},"level":"error","spans":[{"file_name":"src/config.rs","byte_start":1406,"byte_end":1409,"line_start":31,"line_end":31,"column_start":39,"column_end":42,"is_primary":true,"text":[{"text":" #[arg(long, default_value_t = 60, env = \"BUTTERFLY_FPS\")]","highlight_start":39,"highlight_end":42}],"label":"method not found in `Arg`","suggested_replacement":null,"suggestion_applicability":null,"expansion":null}],"children":[],"rendered":"\u001b[1m\u001b[91merror[E0599]\u001b[0m\u001b[1m: no method named `env` found for struct `Arg` in the current scope\u001b[0m\n \u001b[1m\u001b[94m--> \u001b[0msrc/config.rs:31:39\n \u001b[1m\u001b[94m|\u001b[0m\n\u001b[1m\u001b[94m31\u001b[0m \u001b[1m\u001b[94m|\u001b[0m #[arg(long, default_value_t = 60, env = \"BUTTERFLY_FPS\")]\n \u001b[1m\u001b[94m|\u001b[0m \u001b[1m\u001b[91m^^^\u001b[0m \u001b[1m\u001b[91mmethod not found in `Arg`\u001b[0m\n\n"}
|
|
{"$message_type":"diagnostic","message":"no method named `env` found for struct `Arg` in the current scope","code":{"code":"E0599","explanation":"This error occurs when a method is used on a type which doesn't implement it:\n\nErroneous code example:\n\n```compile_fail,E0599\nstruct Mouth;\n\nlet x = Mouth;\nx.chocolate(); // error: no method named `chocolate` found for type `Mouth`\n // in the current scope\n```\n\nIn this case, you need to implement the `chocolate` method to fix the error:\n\n```\nstruct Mouth;\n\nimpl Mouth {\n fn chocolate(&self) { // We implement the `chocolate` method here.\n println!(\"Hmmm! I love chocolate!\");\n }\n}\n\nlet x = Mouth;\nx.chocolate(); // ok!\n```\n"},"level":"error","spans":[{"file_name":"src/config.rs","byte_start":1577,"byte_end":1580,"line_start":35,"line_end":35,"column_start":41,"column_end":44,"is_primary":true,"text":[{"text":" #[arg(long, default_value = \"h264\", env = \"BUTTERFLY_ENCODER\")]","highlight_start":41,"highlight_end":44}],"label":"method not found in `Arg`","suggested_replacement":null,"suggestion_applicability":null,"expansion":null}],"children":[],"rendered":"\u001b[1m\u001b[91merror[E0599]\u001b[0m\u001b[1m: no method named `env` found for struct `Arg` in the current scope\u001b[0m\n \u001b[1m\u001b[94m--> \u001b[0msrc/config.rs:35:41\n \u001b[1m\u001b[94m|\u001b[0m\n\u001b[1m\u001b[94m35\u001b[0m \u001b[1m\u001b[94m|\u001b[0m #[arg(long, default_value = \"h264\", env = \"BUTTERFLY_ENCODER\")]\n \u001b[1m\u001b[94m|\u001b[0m \u001b[1m\u001b[91m^^^\u001b[0m \u001b[1m\u001b[91mmethod not found in `Arg`\u001b[0m\n\n"}
|
|
{"$message_type":"diagnostic","message":"no method named `env` found for struct `Arg` in the current scope","code":{"code":"E0599","explanation":"This error occurs when a method is used on a type which doesn't implement it:\n\nErroneous code example:\n\n```compile_fail,E0599\nstruct Mouth;\n\nlet x = Mouth;\nx.chocolate(); // error: no method named `chocolate` found for type `Mouth`\n // in the current scope\n```\n\nIn this case, you need to implement the `chocolate` method to fix the error:\n\n```\nstruct Mouth;\n\nimpl Mouth {\n fn chocolate(&self) { // We implement the `chocolate` method here.\n println!(\"Hmmm! I love chocolate!\");\n }\n}\n\nlet x = Mouth;\nx.chocolate(); // ok!\n```\n"},"level":"error","spans":[{"file_name":"src/config.rs","byte_start":1767,"byte_end":1770,"line_start":39,"line_end":39,"column_start":39,"column_end":42,"is_primary":true,"text":[{"text":" #[arg(long, default_value_t = 60, env = \"BUTTERFLY_QUALITY\")]","highlight_start":39,"highlight_end":42}],"label":"method not found in `Arg`","suggested_replacement":null,"suggestion_applicability":null,"expansion":null}],"children":[],"rendered":"\u001b[1m\u001b[91merror[E0599]\u001b[0m\u001b[1m: no method named `env` found for struct `Arg` in the current scope\u001b[0m\n \u001b[1m\u001b[94m--> \u001b[0msrc/config.rs:39:39\n \u001b[1m\u001b[94m|\u001b[0m\n\u001b[1m\u001b[94m39\u001b[0m \u001b[1m\u001b[94m|\u001b[0m #[arg(long, default_value_t = 60, env = \"BUTTERFLY_QUALITY\")]\n \u001b[1m\u001b[94m|\u001b[0m \u001b[1m\u001b[91m^^^\u001b[0m \u001b[1m\u001b[91mmethod not found in `Arg`\u001b[0m\n\n"}
|
|
{"$message_type":"diagnostic","message":"no method named `env` found for struct `Arg` in the current scope","code":{"code":"E0599","explanation":"This error occurs when a method is used on a type which doesn't implement it:\n\nErroneous code example:\n\n```compile_fail,E0599\nstruct Mouth;\n\nlet x = Mouth;\nx.chocolate(); // error: no method named `chocolate` found for type `Mouth`\n // in the current scope\n```\n\nIn this case, you need to implement the `chocolate` method to fix the error:\n\n```\nstruct Mouth;\n\nimpl Mouth {\n fn chocolate(&self) { // We implement the `chocolate` method here.\n println!(\"Hmmm! I love chocolate!\");\n }\n}\n\nlet x = Mouth;\nx.chocolate(); // ok!\n```\n"},"level":"error","spans":[{"file_name":"src/config.rs","byte_start":1927,"byte_end":1930,"line_start":43,"line_end":43,"column_start":38,"column_end":41,"is_primary":true,"text":[{"text":" #[arg(long, default_value_t = 0, env = \"BUTTERFLY_DISPLAY\")]","highlight_start":38,"highlight_end":41}],"label":"method not found in `Arg`","suggested_replacement":null,"suggestion_applicability":null,"expansion":null}],"children":[],"rendered":"\u001b[1m\u001b[91merror[E0599]\u001b[0m\u001b[1m: no method named `env` found for struct `Arg` in the current scope\u001b[0m\n \u001b[1m\u001b[94m--> \u001b[0msrc/config.rs:43:38\n \u001b[1m\u001b[94m|\u001b[0m\n\u001b[1m\u001b[94m43\u001b[0m \u001b[1m\u001b[94m|\u001b[0m #[arg(long, default_value_t = 0, env = \"BUTTERFLY_DISPLAY\")]\n \u001b[1m\u001b[94m|\u001b[0m \u001b[1m\u001b[91m^^^\u001b[0m \u001b[1m\u001b[91mmethod not found in `Arg`\u001b[0m\n\n"}
|
|
{"$message_type":"diagnostic","message":"no method named `env` found for struct `Arg` in the current scope","code":{"code":"E0599","explanation":"This error occurs when a method is used on a type which doesn't implement it:\n\nErroneous code example:\n\n```compile_fail,E0599\nstruct Mouth;\n\nlet x = Mouth;\nx.chocolate(); // error: no method named `chocolate` found for type `Mouth`\n // in the current scope\n```\n\nIn this case, you need to implement the `chocolate` method to fix the error:\n\n```\nstruct Mouth;\n\nimpl Mouth {\n fn chocolate(&self) { // We implement the `chocolate` method here.\n println!(\"Hmmm! I love chocolate!\");\n }\n}\n\nlet x = Mouth;\nx.chocolate(); // ok!\n```\n"},"level":"error","spans":[{"file_name":"src/config.rs","byte_start":2065,"byte_end":2068,"line_start":47,"line_end":47,"column_start":42,"column_end":45,"is_primary":true,"text":[{"text":" #[arg(long, default_value_t = false, env = \"BUTTERFLY_AUDIO\")]","highlight_start":42,"highlight_end":45}],"label":"method not found in `Arg`","suggested_replacement":null,"suggestion_applicability":null,"expansion":null}],"children":[],"rendered":"\u001b[1m\u001b[91merror[E0599]\u001b[0m\u001b[1m: no method named `env` found for struct `Arg` in the current scope\u001b[0m\n \u001b[1m\u001b[94m--> \u001b[0msrc/config.rs:47:42\n \u001b[1m\u001b[94m|\u001b[0m\n\u001b[1m\u001b[94m47\u001b[0m \u001b[1m\u001b[94m|\u001b[0m #[arg(long, default_value_t = false, env = \"BUTTERFLY_AUDIO\")]\n \u001b[1m\u001b[94m|\u001b[0m \u001b[1m\u001b[91m^^^\u001b[0m \u001b[1m\u001b[91mmethod not found in `Arg`\u001b[0m\n\n"}
|
|
{"$message_type":"diagnostic","message":"no method named `env` found for struct `Arg` in the current scope","code":{"code":"E0599","explanation":"This error occurs when a method is used on a type which doesn't implement it:\n\nErroneous code example:\n\n```compile_fail,E0599\nstruct Mouth;\n\nlet x = Mouth;\nx.chocolate(); // error: no method named `chocolate` found for type `Mouth`\n // in the current scope\n```\n\nIn this case, you need to implement the `chocolate` method to fix the error:\n\n```\nstruct Mouth;\n\nimpl Mouth {\n fn chocolate(&self) { // We implement the `chocolate` method here.\n println!(\"Hmmm! I love chocolate!\");\n }\n}\n\nlet x = Mouth;\nx.chocolate(); // ok!\n```\n"},"level":"error","spans":[{"file_name":"src/config.rs","byte_start":2190,"byte_end":2193,"line_start":51,"line_end":51,"column_start":39,"column_end":42,"is_primary":true,"text":[{"text":" #[arg(long, default_value_t = 15, env = \"BUTTERFLY_HEARTBEAT\")]","highlight_start":39,"highlight_end":42}],"label":"method not found in `Arg`","suggested_replacement":null,"suggestion_applicability":null,"expansion":null}],"children":[],"rendered":"\u001b[1m\u001b[91merror[E0599]\u001b[0m\u001b[1m: no method named `env` found for struct `Arg` in the current scope\u001b[0m\n \u001b[1m\u001b[94m--> \u001b[0msrc/config.rs:51:39\n \u001b[1m\u001b[94m|\u001b[0m\n\u001b[1m\u001b[94m51\u001b[0m \u001b[1m\u001b[94m|\u001b[0m #[arg(long, default_value_t = 15, env = \"BUTTERFLY_HEARTBEAT\")]\n \u001b[1m\u001b[94m|\u001b[0m \u001b[1m\u001b[91m^^^\u001b[0m \u001b[1m\u001b[91mmethod not found in `Arg`\u001b[0m\n\n"}
|
|
{"$message_type":"diagnostic","message":"no method named `env` found for struct `Arg` in the current scope","code":{"code":"E0599","explanation":"This error occurs when a method is used on a type which doesn't implement it:\n\nErroneous code example:\n\n```compile_fail,E0599\nstruct Mouth;\n\nlet x = Mouth;\nx.chocolate(); // error: no method named `chocolate` found for type `Mouth`\n // in the current scope\n```\n\nIn this case, you need to implement the `chocolate` method to fix the error:\n\n```\nstruct Mouth;\n\nimpl Mouth {\n fn chocolate(&self) { // We implement the `chocolate` method here.\n println!(\"Hmmm! I love chocolate!\");\n }\n}\n\nlet x = Mouth;\nx.chocolate(); // ok!\n```\n"},"level":"error","spans":[{"file_name":"src/config.rs","byte_start":2345,"byte_end":2348,"line_start":55,"line_end":55,"column_start":38,"column_end":41,"is_primary":true,"text":[{"text":" #[arg(long, default_value_t = 3, env = \"BUTTERFLY_RECONNECT_DELAY\")]","highlight_start":38,"highlight_end":41}],"label":"method not found in `Arg`","suggested_replacement":null,"suggestion_applicability":null,"expansion":null}],"children":[],"rendered":"\u001b[1m\u001b[91merror[E0599]\u001b[0m\u001b[1m: no method named `env` found for struct `Arg` in the current scope\u001b[0m\n \u001b[1m\u001b[94m--> \u001b[0msrc/config.rs:55:38\n \u001b[1m\u001b[94m|\u001b[0m\n\u001b[1m\u001b[94m55\u001b[0m \u001b[1m\u001b[94m|\u001b[0m #[arg(long, default_value_t = 3, env = \"BUTTERFLY_RECONNECT_DELAY\")]\n \u001b[1m\u001b[94m|\u001b[0m \u001b[1m\u001b[91m^^^\u001b[0m \u001b[1m\u001b[91mmethod not found in `Arg`\u001b[0m\n\n"}
|
|
{"$message_type":"diagnostic","message":"no method named `env` found for struct `Arg` in the current scope","code":{"code":"E0599","explanation":"This error occurs when a method is used on a type which doesn't implement it:\n\nErroneous code example:\n\n```compile_fail,E0599\nstruct Mouth;\n\nlet x = Mouth;\nx.chocolate(); // error: no method named `chocolate` found for type `Mouth`\n // in the current scope\n```\n\nIn this case, you need to implement the `chocolate` method to fix the error:\n\n```\nstruct Mouth;\n\nimpl Mouth {\n fn chocolate(&self) { // We implement the `chocolate` method here.\n println!(\"Hmmm! I love chocolate!\");\n }\n}\n\nlet x = Mouth;\nx.chocolate(); // ok!\n```\n"},"level":"error","spans":[{"file_name":"src/config.rs","byte_start":2508,"byte_end":2511,"line_start":59,"line_end":59,"column_start":38,"column_end":41,"is_primary":true,"text":[{"text":" #[arg(long, default_value_t = 0, env = \"BUTTERFLY_MAX_RECONNECT\")]","highlight_start":38,"highlight_end":41}],"label":"method not found in `Arg`","suggested_replacement":null,"suggestion_applicability":null,"expansion":null}],"children":[],"rendered":"\u001b[1m\u001b[91merror[E0599]\u001b[0m\u001b[1m: no method named `env` found for struct `Arg` in the current scope\u001b[0m\n \u001b[1m\u001b[94m--> \u001b[0msrc/config.rs:59:38\n \u001b[1m\u001b[94m|\u001b[0m\n\u001b[1m\u001b[94m59\u001b[0m \u001b[1m\u001b[94m|\u001b[0m #[arg(long, default_value_t = 0, env = \"BUTTERFLY_MAX_RECONNECT\")]\n \u001b[1m\u001b[94m|\u001b[0m \u001b[1m\u001b[91m^^^\u001b[0m \u001b[1m\u001b[91mmethod not found in `Arg`\u001b[0m\n\n"}
|
|
{"$message_type":"diagnostic","message":"no method named `env` found for struct `Arg` in the current scope","code":{"code":"E0599","explanation":"This error occurs when a method is used on a type which doesn't implement it:\n\nErroneous code example:\n\n```compile_fail,E0599\nstruct Mouth;\n\nlet x = Mouth;\nx.chocolate(); // error: no method named `chocolate` found for type `Mouth`\n // in the current scope\n```\n\nIn this case, you need to implement the `chocolate` method to fix the error:\n\n```\nstruct Mouth;\n\nimpl Mouth {\n fn chocolate(&self) { // We implement the `chocolate` method here.\n println!(\"Hmmm! I love chocolate!\");\n }\n}\n\nlet x = Mouth;\nx.chocolate(); // ok!\n```\n"},"level":"error","spans":[{"file_name":"src/config.rs","byte_start":1040,"byte_end":1043,"line_start":22,"line_end":22,"column_start":56,"column_end":59,"is_primary":true,"text":[{"text":" #[arg(long, default_value = \"ws://localhost:8080\", env = \"BUTTERFLY_SERVER\")]","highlight_start":56,"highlight_end":59}],"label":"method not found in `Arg`","suggested_replacement":null,"suggestion_applicability":null,"expansion":null}],"children":[],"rendered":"\u001b[1m\u001b[91merror[E0599]\u001b[0m\u001b[1m: no method named `env` found for struct `Arg` in the current scope\u001b[0m\n \u001b[1m\u001b[94m--> \u001b[0msrc/config.rs:22:56\n \u001b[1m\u001b[94m|\u001b[0m\n\u001b[1m\u001b[94m22\u001b[0m \u001b[1m\u001b[94m|\u001b[0m #[arg(long, default_value = \"ws://localhost:8080\", env = \"BUTTERFLY_SERVER\")]\n \u001b[1m\u001b[94m|\u001b[0m \u001b[1m\u001b[91m^^^\u001b[0m \u001b[1m\u001b[91mmethod not found in `Arg`\u001b[0m\n\n"}
|
|
{"$message_type":"diagnostic","message":"no method named `env` found for struct `Arg` in the current scope","code":{"code":"E0599","explanation":"This error occurs when a method is used on a type which doesn't implement it:\n\nErroneous code example:\n\n```compile_fail,E0599\nstruct Mouth;\n\nlet x = Mouth;\nx.chocolate(); // error: no method named `chocolate` found for type `Mouth`\n // in the current scope\n```\n\nIn this case, you need to implement the `chocolate` method to fix the error:\n\n```\nstruct Mouth;\n\nimpl Mouth {\n fn chocolate(&self) { // We implement the `chocolate` method here.\n println!(\"Hmmm! I love chocolate!\");\n }\n}\n\nlet x = Mouth;\nx.chocolate(); // ok!\n```\n"},"level":"error","spans":[{"file_name":"src/config.rs","byte_start":1245,"byte_end":1248,"line_start":27,"line_end":27,"column_start":17,"column_end":20,"is_primary":true,"text":[{"text":" #[arg(long, env = \"BUTTERFLY_SESSION_ID\")]","highlight_start":17,"highlight_end":20}],"label":"method not found in `Arg`","suggested_replacement":null,"suggestion_applicability":null,"expansion":null}],"children":[],"rendered":"\u001b[1m\u001b[91merror[E0599]\u001b[0m\u001b[1m: no method named `env` found for struct `Arg` in the current scope\u001b[0m\n \u001b[1m\u001b[94m--> \u001b[0msrc/config.rs:27:17\n \u001b[1m\u001b[94m|\u001b[0m\n\u001b[1m\u001b[94m27\u001b[0m \u001b[1m\u001b[94m|\u001b[0m #[arg(long, env = \"BUTTERFLY_SESSION_ID\")]\n \u001b[1m\u001b[94m|\u001b[0m \u001b[1m\u001b[91m^^^\u001b[0m \u001b[1m\u001b[91mmethod not found in `Arg`\u001b[0m\n\n"}
|
|
{"$message_type":"diagnostic","message":"no method named `env` found for struct `Arg` in the current scope","code":{"code":"E0599","explanation":"This error occurs when a method is used on a type which doesn't implement it:\n\nErroneous code example:\n\n```compile_fail,E0599\nstruct Mouth;\n\nlet x = Mouth;\nx.chocolate(); // error: no method named `chocolate` found for type `Mouth`\n // in the current scope\n```\n\nIn this case, you need to implement the `chocolate` method to fix the error:\n\n```\nstruct Mouth;\n\nimpl Mouth {\n fn chocolate(&self) { // We implement the `chocolate` method here.\n println!(\"Hmmm! I love chocolate!\");\n }\n}\n\nlet x = Mouth;\nx.chocolate(); // ok!\n```\n"},"level":"error","spans":[{"file_name":"src/config.rs","byte_start":1406,"byte_end":1409,"line_start":31,"line_end":31,"column_start":39,"column_end":42,"is_primary":true,"text":[{"text":" #[arg(long, default_value_t = 60, env = \"BUTTERFLY_FPS\")]","highlight_start":39,"highlight_end":42}],"label":"method not found in `Arg`","suggested_replacement":null,"suggestion_applicability":null,"expansion":null}],"children":[],"rendered":"\u001b[1m\u001b[91merror[E0599]\u001b[0m\u001b[1m: no method named `env` found for struct `Arg` in the current scope\u001b[0m\n \u001b[1m\u001b[94m--> \u001b[0msrc/config.rs:31:39\n \u001b[1m\u001b[94m|\u001b[0m\n\u001b[1m\u001b[94m31\u001b[0m \u001b[1m\u001b[94m|\u001b[0m #[arg(long, default_value_t = 60, env = \"BUTTERFLY_FPS\")]\n \u001b[1m\u001b[94m|\u001b[0m \u001b[1m\u001b[91m^^^\u001b[0m \u001b[1m\u001b[91mmethod not found in `Arg`\u001b[0m\n\n"}
|
|
{"$message_type":"diagnostic","message":"no method named `env` found for struct `Arg` in the current scope","code":{"code":"E0599","explanation":"This error occurs when a method is used on a type which doesn't implement it:\n\nErroneous code example:\n\n```compile_fail,E0599\nstruct Mouth;\n\nlet x = Mouth;\nx.chocolate(); // error: no method named `chocolate` found for type `Mouth`\n // in the current scope\n```\n\nIn this case, you need to implement the `chocolate` method to fix the error:\n\n```\nstruct Mouth;\n\nimpl Mouth {\n fn chocolate(&self) { // We implement the `chocolate` method here.\n println!(\"Hmmm! I love chocolate!\");\n }\n}\n\nlet x = Mouth;\nx.chocolate(); // ok!\n```\n"},"level":"error","spans":[{"file_name":"src/config.rs","byte_start":1577,"byte_end":1580,"line_start":35,"line_end":35,"column_start":41,"column_end":44,"is_primary":true,"text":[{"text":" #[arg(long, default_value = \"h264\", env = \"BUTTERFLY_ENCODER\")]","highlight_start":41,"highlight_end":44}],"label":"method not found in `Arg`","suggested_replacement":null,"suggestion_applicability":null,"expansion":null}],"children":[],"rendered":"\u001b[1m\u001b[91merror[E0599]\u001b[0m\u001b[1m: no method named `env` found for struct `Arg` in the current scope\u001b[0m\n \u001b[1m\u001b[94m--> \u001b[0msrc/config.rs:35:41\n \u001b[1m\u001b[94m|\u001b[0m\n\u001b[1m\u001b[94m35\u001b[0m \u001b[1m\u001b[94m|\u001b[0m #[arg(long, default_value = \"h264\", env = \"BUTTERFLY_ENCODER\")]\n \u001b[1m\u001b[94m|\u001b[0m \u001b[1m\u001b[91m^^^\u001b[0m \u001b[1m\u001b[91mmethod not found in `Arg`\u001b[0m\n\n"}
|
|
{"$message_type":"diagnostic","message":"no method named `env` found for struct `Arg` in the current scope","code":{"code":"E0599","explanation":"This error occurs when a method is used on a type which doesn't implement it:\n\nErroneous code example:\n\n```compile_fail,E0599\nstruct Mouth;\n\nlet x = Mouth;\nx.chocolate(); // error: no method named `chocolate` found for type `Mouth`\n // in the current scope\n```\n\nIn this case, you need to implement the `chocolate` method to fix the error:\n\n```\nstruct Mouth;\n\nimpl Mouth {\n fn chocolate(&self) { // We implement the `chocolate` method here.\n println!(\"Hmmm! I love chocolate!\");\n }\n}\n\nlet x = Mouth;\nx.chocolate(); // ok!\n```\n"},"level":"error","spans":[{"file_name":"src/config.rs","byte_start":1767,"byte_end":1770,"line_start":39,"line_end":39,"column_start":39,"column_end":42,"is_primary":true,"text":[{"text":" #[arg(long, default_value_t = 60, env = \"BUTTERFLY_QUALITY\")]","highlight_start":39,"highlight_end":42}],"label":"method not found in `Arg`","suggested_replacement":null,"suggestion_applicability":null,"expansion":null}],"children":[],"rendered":"\u001b[1m\u001b[91merror[E0599]\u001b[0m\u001b[1m: no method named `env` found for struct `Arg` in the current scope\u001b[0m\n \u001b[1m\u001b[94m--> \u001b[0msrc/config.rs:39:39\n \u001b[1m\u001b[94m|\u001b[0m\n\u001b[1m\u001b[94m39\u001b[0m \u001b[1m\u001b[94m|\u001b[0m #[arg(long, default_value_t = 60, env = \"BUTTERFLY_QUALITY\")]\n \u001b[1m\u001b[94m|\u001b[0m \u001b[1m\u001b[91m^^^\u001b[0m \u001b[1m\u001b[91mmethod not found in `Arg`\u001b[0m\n\n"}
|
|
{"$message_type":"diagnostic","message":"no method named `env` found for struct `Arg` in the current scope","code":{"code":"E0599","explanation":"This error occurs when a method is used on a type which doesn't implement it:\n\nErroneous code example:\n\n```compile_fail,E0599\nstruct Mouth;\n\nlet x = Mouth;\nx.chocolate(); // error: no method named `chocolate` found for type `Mouth`\n // in the current scope\n```\n\nIn this case, you need to implement the `chocolate` method to fix the error:\n\n```\nstruct Mouth;\n\nimpl Mouth {\n fn chocolate(&self) { // We implement the `chocolate` method here.\n println!(\"Hmmm! I love chocolate!\");\n }\n}\n\nlet x = Mouth;\nx.chocolate(); // ok!\n```\n"},"level":"error","spans":[{"file_name":"src/config.rs","byte_start":1927,"byte_end":1930,"line_start":43,"line_end":43,"column_start":38,"column_end":41,"is_primary":true,"text":[{"text":" #[arg(long, default_value_t = 0, env = \"BUTTERFLY_DISPLAY\")]","highlight_start":38,"highlight_end":41}],"label":"method not found in `Arg`","suggested_replacement":null,"suggestion_applicability":null,"expansion":null}],"children":[],"rendered":"\u001b[1m\u001b[91merror[E0599]\u001b[0m\u001b[1m: no method named `env` found for struct `Arg` in the current scope\u001b[0m\n \u001b[1m\u001b[94m--> \u001b[0msrc/config.rs:43:38\n \u001b[1m\u001b[94m|\u001b[0m\n\u001b[1m\u001b[94m43\u001b[0m \u001b[1m\u001b[94m|\u001b[0m #[arg(long, default_value_t = 0, env = \"BUTTERFLY_DISPLAY\")]\n \u001b[1m\u001b[94m|\u001b[0m \u001b[1m\u001b[91m^^^\u001b[0m \u001b[1m\u001b[91mmethod not found in `Arg`\u001b[0m\n\n"}
|
|
{"$message_type":"diagnostic","message":"no method named `env` found for struct `Arg` in the current scope","code":{"code":"E0599","explanation":"This error occurs when a method is used on a type which doesn't implement it:\n\nErroneous code example:\n\n```compile_fail,E0599\nstruct Mouth;\n\nlet x = Mouth;\nx.chocolate(); // error: no method named `chocolate` found for type `Mouth`\n // in the current scope\n```\n\nIn this case, you need to implement the `chocolate` method to fix the error:\n\n```\nstruct Mouth;\n\nimpl Mouth {\n fn chocolate(&self) { // We implement the `chocolate` method here.\n println!(\"Hmmm! I love chocolate!\");\n }\n}\n\nlet x = Mouth;\nx.chocolate(); // ok!\n```\n"},"level":"error","spans":[{"file_name":"src/config.rs","byte_start":2065,"byte_end":2068,"line_start":47,"line_end":47,"column_start":42,"column_end":45,"is_primary":true,"text":[{"text":" #[arg(long, default_value_t = false, env = \"BUTTERFLY_AUDIO\")]","highlight_start":42,"highlight_end":45}],"label":"method not found in `Arg`","suggested_replacement":null,"suggestion_applicability":null,"expansion":null}],"children":[],"rendered":"\u001b[1m\u001b[91merror[E0599]\u001b[0m\u001b[1m: no method named `env` found for struct `Arg` in the current scope\u001b[0m\n \u001b[1m\u001b[94m--> \u001b[0msrc/config.rs:47:42\n \u001b[1m\u001b[94m|\u001b[0m\n\u001b[1m\u001b[94m47\u001b[0m \u001b[1m\u001b[94m|\u001b[0m #[arg(long, default_value_t = false, env = \"BUTTERFLY_AUDIO\")]\n \u001b[1m\u001b[94m|\u001b[0m \u001b[1m\u001b[91m^^^\u001b[0m \u001b[1m\u001b[91mmethod not found in `Arg`\u001b[0m\n\n"}
|
|
{"$message_type":"diagnostic","message":"no method named `env` found for struct `Arg` in the current scope","code":{"code":"E0599","explanation":"This error occurs when a method is used on a type which doesn't implement it:\n\nErroneous code example:\n\n```compile_fail,E0599\nstruct Mouth;\n\nlet x = Mouth;\nx.chocolate(); // error: no method named `chocolate` found for type `Mouth`\n // in the current scope\n```\n\nIn this case, you need to implement the `chocolate` method to fix the error:\n\n```\nstruct Mouth;\n\nimpl Mouth {\n fn chocolate(&self) { // We implement the `chocolate` method here.\n println!(\"Hmmm! I love chocolate!\");\n }\n}\n\nlet x = Mouth;\nx.chocolate(); // ok!\n```\n"},"level":"error","spans":[{"file_name":"src/config.rs","byte_start":2190,"byte_end":2193,"line_start":51,"line_end":51,"column_start":39,"column_end":42,"is_primary":true,"text":[{"text":" #[arg(long, default_value_t = 15, env = \"BUTTERFLY_HEARTBEAT\")]","highlight_start":39,"highlight_end":42}],"label":"method not found in `Arg`","suggested_replacement":null,"suggestion_applicability":null,"expansion":null}],"children":[],"rendered":"\u001b[1m\u001b[91merror[E0599]\u001b[0m\u001b[1m: no method named `env` found for struct `Arg` in the current scope\u001b[0m\n \u001b[1m\u001b[94m--> \u001b[0msrc/config.rs:51:39\n \u001b[1m\u001b[94m|\u001b[0m\n\u001b[1m\u001b[94m51\u001b[0m \u001b[1m\u001b[94m|\u001b[0m #[arg(long, default_value_t = 15, env = \"BUTTERFLY_HEARTBEAT\")]\n \u001b[1m\u001b[94m|\u001b[0m \u001b[1m\u001b[91m^^^\u001b[0m \u001b[1m\u001b[91mmethod not found in `Arg`\u001b[0m\n\n"}
|
|
{"$message_type":"diagnostic","message":"no method named `env` found for struct `Arg` in the current scope","code":{"code":"E0599","explanation":"This error occurs when a method is used on a type which doesn't implement it:\n\nErroneous code example:\n\n```compile_fail,E0599\nstruct Mouth;\n\nlet x = Mouth;\nx.chocolate(); // error: no method named `chocolate` found for type `Mouth`\n // in the current scope\n```\n\nIn this case, you need to implement the `chocolate` method to fix the error:\n\n```\nstruct Mouth;\n\nimpl Mouth {\n fn chocolate(&self) { // We implement the `chocolate` method here.\n println!(\"Hmmm! I love chocolate!\");\n }\n}\n\nlet x = Mouth;\nx.chocolate(); // ok!\n```\n"},"level":"error","spans":[{"file_name":"src/config.rs","byte_start":2345,"byte_end":2348,"line_start":55,"line_end":55,"column_start":38,"column_end":41,"is_primary":true,"text":[{"text":" #[arg(long, default_value_t = 3, env = \"BUTTERFLY_RECONNECT_DELAY\")]","highlight_start":38,"highlight_end":41}],"label":"method not found in `Arg`","suggested_replacement":null,"suggestion_applicability":null,"expansion":null}],"children":[],"rendered":"\u001b[1m\u001b[91merror[E0599]\u001b[0m\u001b[1m: no method named `env` found for struct `Arg` in the current scope\u001b[0m\n \u001b[1m\u001b[94m--> \u001b[0msrc/config.rs:55:38\n \u001b[1m\u001b[94m|\u001b[0m\n\u001b[1m\u001b[94m55\u001b[0m \u001b[1m\u001b[94m|\u001b[0m #[arg(long, default_value_t = 3, env = \"BUTTERFLY_RECONNECT_DELAY\")]\n \u001b[1m\u001b[94m|\u001b[0m \u001b[1m\u001b[91m^^^\u001b[0m \u001b[1m\u001b[91mmethod not found in `Arg`\u001b[0m\n\n"}
|
|
{"$message_type":"diagnostic","message":"no method named `env` found for struct `Arg` in the current scope","code":{"code":"E0599","explanation":"This error occurs when a method is used on a type which doesn't implement it:\n\nErroneous code example:\n\n```compile_fail,E0599\nstruct Mouth;\n\nlet x = Mouth;\nx.chocolate(); // error: no method named `chocolate` found for type `Mouth`\n // in the current scope\n```\n\nIn this case, you need to implement the `chocolate` method to fix the error:\n\n```\nstruct Mouth;\n\nimpl Mouth {\n fn chocolate(&self) { // We implement the `chocolate` method here.\n println!(\"Hmmm! I love chocolate!\");\n }\n}\n\nlet x = Mouth;\nx.chocolate(); // ok!\n```\n"},"level":"error","spans":[{"file_name":"src/config.rs","byte_start":2508,"byte_end":2511,"line_start":59,"line_end":59,"column_start":38,"column_end":41,"is_primary":true,"text":[{"text":" #[arg(long, default_value_t = 0, env = \"BUTTERFLY_MAX_RECONNECT\")]","highlight_start":38,"highlight_end":41}],"label":"method not found in `Arg`","suggested_replacement":null,"suggestion_applicability":null,"expansion":null}],"children":[],"rendered":"\u001b[1m\u001b[91merror[E0599]\u001b[0m\u001b[1m: no method named `env` found for struct `Arg` in the current scope\u001b[0m\n \u001b[1m\u001b[94m--> \u001b[0msrc/config.rs:59:38\n \u001b[1m\u001b[94m|\u001b[0m\n\u001b[1m\u001b[94m59\u001b[0m \u001b[1m\u001b[94m|\u001b[0m #[arg(long, default_value_t = 0, env = \"BUTTERFLY_MAX_RECONNECT\")]\n \u001b[1m\u001b[94m|\u001b[0m \u001b[1m\u001b[91m^^^\u001b[0m \u001b[1m\u001b[91mmethod not found in `Arg`\u001b[0m\n\n"}
|
|
{"$message_type":"diagnostic","message":"struct takes 2 generic arguments but 1 generic argument was supplied","code":{"code":"E0107","explanation":"An incorrect number of generic arguments was provided.\n\nErroneous code example:\n\n```compile_fail,E0107\nstruct Foo<T> { x: T }\n\nstruct Bar { x: Foo } // error: wrong number of type arguments:\n // expected 1, found 0\nstruct Baz<S, T> { x: Foo<S, T> } // error: wrong number of type arguments:\n // expected 1, found 2\n\nfn foo<T, U>(x: T, y: U) {}\nfn f() {}\n\nfn main() {\n let x: bool = true;\n foo::<bool>(x); // error: wrong number of type arguments:\n // expected 2, found 1\n foo::<bool, i32, i32>(x, 2, 4); // error: wrong number of type arguments:\n // expected 2, found 3\n f::<'static>(); // error: wrong number of lifetime arguments\n // expected 0, found 1\n}\n```\n\nWhen using/declaring an item with generic arguments, you must provide the exact\nsame number:\n\n```\nstruct Foo<T> { x: T }\n\nstruct Bar<T> { x: Foo<T> } // ok!\nstruct Baz<S, T> { x: Foo<S>, y: Foo<T> } // ok!\n\nfn foo<T, U>(x: T, y: U) {}\nfn f() {}\n\nfn main() {\n let x: bool = true;\n foo::<bool, u32>(x, 12); // ok!\n f(); // ok!\n}\n```\n"},"level":"error","spans":[{"file_name":"src/encoder.rs","byte_start":2624,"byte_end":2635,"line_start":79,"line_end":79,"column_start":26,"column_end":37,"is_primary":true,"text":[{"text":" let img_buffer = ImageBuffer::<Rgb<u8>>::from_raw(width as u32, height as u32, rgb_data)","highlight_start":26,"highlight_end":37}],"label":"expected 2 generic arguments","suggested_replacement":null,"suggestion_applicability":null,"expansion":null},{"file_name":"src/encoder.rs","byte_start":2638,"byte_end":2645,"line_start":79,"line_end":79,"column_start":40,"column_end":47,"is_primary":false,"text":[{"text":" let img_buffer = ImageBuffer::<Rgb<u8>>::from_raw(width as u32, height as u32, rgb_data)","highlight_start":40,"highlight_end":47}],"label":"supplied 1 generic argument","suggested_replacement":null,"suggestion_applicability":null,"expansion":null}],"children":[{"message":"struct defined here, with 2 generic parameters: `P`, `Container`","code":null,"level":"note","spans":[{"file_name":"/home/z/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/image-0.25.10/src/images/buffer.rs","byte_start":16884,"byte_end":16885,"line_start":661,"line_end":661,"column_start":24,"column_end":25,"is_primary":false,"text":[{"text":"pub struct ImageBuffer<P: Pixel, Container> {","highlight_start":24,"highlight_end":25}],"label":"","suggested_replacement":null,"suggestion_applicability":null,"expansion":null},{"file_name":"/home/z/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/image-0.25.10/src/images/buffer.rs","byte_start":16894,"byte_end":16903,"line_start":661,"line_end":661,"column_start":34,"column_end":43,"is_primary":false,"text":[{"text":"pub struct ImageBuffer<P: Pixel, Container> {","highlight_start":34,"highlight_end":43}],"label":"","suggested_replacement":null,"suggestion_applicability":null,"expansion":null},{"file_name":"/home/z/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/image-0.25.10/src/images/buffer.rs","byte_start":16872,"byte_end":16883,"line_start":661,"line_end":661,"column_start":12,"column_end":23,"is_primary":true,"text":[{"text":"pub struct ImageBuffer<P: Pixel, Container> {","highlight_start":12,"highlight_end":23}],"label":null,"suggested_replacement":null,"suggestion_applicability":null,"expansion":null}],"children":[],"rendered":null},{"message":"add missing generic argument","code":null,"level":"help","spans":[{"file_name":"src/encoder.rs","byte_start":2645,"byte_end":2645,"line_start":79,"line_end":79,"column_start":47,"column_end":47,"is_primary":true,"text":[{"text":" let img_buffer = ImageBuffer::<Rgb<u8>>::from_raw(width as u32, height as u32, rgb_data)","highlight_start":47,"highlight_end":47}],"label":null,"suggested_replacement":", Container","suggestion_applicability":"HasPlaceholders","expansion":null}],"children":[],"rendered":null}],"rendered":"\u001b[1m\u001b[91merror[E0107]\u001b[0m\u001b[1m: struct takes 2 generic arguments but 1 generic argument was supplied\u001b[0m\n \u001b[1m\u001b[94m--> \u001b[0msrc/encoder.rs:79:26\n \u001b[1m\u001b[94m|\u001b[0m\n\u001b[1m\u001b[94m 79\u001b[0m \u001b[1m\u001b[94m|\u001b[0m let img_buffer = ImageBuffer::<Rgb<u8>>::from_raw(width as u32, height as u32, rgb_data)\n \u001b[1m\u001b[94m|\u001b[0m \u001b[1m\u001b[91m^^^^^^^^^^^\u001b[0m \u001b[1m\u001b[94m-------\u001b[0m \u001b[1m\u001b[94msupplied 1 generic argument\u001b[0m\n \u001b[1m\u001b[94m|\u001b[0m \u001b[1m\u001b[91m|\u001b[0m\n \u001b[1m\u001b[94m|\u001b[0m \u001b[1m\u001b[91mexpected 2 generic arguments\u001b[0m\n \u001b[1m\u001b[94m|\u001b[0m\n\u001b[1m\u001b[92mnote\u001b[0m: struct defined here, with 2 generic parameters: `P`, `Container`\n \u001b[1m\u001b[94m--> \u001b[0m/home/z/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/image-0.25.10/src/images/buffer.rs:661:12\n \u001b[1m\u001b[94m|\u001b[0m\n\u001b[1m\u001b[94m661\u001b[0m \u001b[1m\u001b[94m|\u001b[0m pub struct ImageBuffer<P: Pixel, Container> {\n \u001b[1m\u001b[94m|\u001b[0m \u001b[1m\u001b[92m^^^^^^^^^^^\u001b[0m \u001b[1m\u001b[94m-\u001b[0m \u001b[1m\u001b[94m---------\u001b[0m\n\u001b[1m\u001b[96mhelp\u001b[0m: add missing generic argument\n \u001b[1m\u001b[94m|\u001b[0m\n\u001b[1m\u001b[94m 79\u001b[0m \u001b[1m\u001b[94m| \u001b[0m let img_buffer = ImageBuffer::<Rgb<u8>\u001b[92m, Container\u001b[0m>::from_raw(width as u32, height as u32, rgb_data)\n \u001b[1m\u001b[94m|\u001b[0m \u001b[92m+++++++++++\u001b[0m\n\n"}
|
|
{"$message_type":"diagnostic","message":"this function takes 0 arguments but 3 arguments were supplied","code":{"code":"E0061","explanation":"An invalid number of arguments was passed when calling a function.\n\nErroneous code example:\n\n```compile_fail,E0061\nfn f(u: i32) {}\n\nf(); // error!\n```\n\nThe number of arguments passed to a function must match the number of arguments\nspecified in the function signature.\n\nFor example, a function like:\n\n```\nfn f(a: u16, b: &str) {}\n```\n\nMust always be called with exactly two arguments, e.g., `f(2, \"test\")`.\n\nNote that Rust does not have a notion of optional function arguments or\nvariadic functions (except for its C-FFI).\n"},"level":"error","spans":[{"file_name":"src/encoder.rs","byte_start":4618,"byte_end":4656,"line_start":127,"line_end":127,"column_start":21,"column_end":59,"is_primary":false,"text":[{"text":" openh264::encoder::Width(width as i32),","highlight_start":21,"highlight_end":59}],"label":"unexpected argument #1","suggested_replacement":null,"suggestion_applicability":null,"expansion":null},{"file_name":"src/encoder.rs","byte_start":4678,"byte_end":4718,"line_start":128,"line_end":128,"column_start":21,"column_end":61,"is_primary":false,"text":[{"text":" openh264::encoder::Height(height as i32),","highlight_start":21,"highlight_end":61}],"label":"unexpected argument #2","suggested_replacement":null,"suggestion_applicability":null,"expansion":null},{"file_name":"src/encoder.rs","byte_start":4740,"byte_end":4742,"line_start":129,"line_end":129,"column_start":21,"column_end":23,"is_primary":false,"text":[{"text":" rc,","highlight_start":21,"highlight_end":23}],"label":"unexpected argument #3","suggested_replacement":null,"suggestion_applicability":null,"expansion":null},{"file_name":"src/encoder.rs","byte_start":4565,"byte_end":4596,"line_start":126,"line_end":126,"column_start":31,"column_end":62,"is_primary":true,"text":[{"text":" let encoder = openh264::encoder::Encoder::new(","highlight_start":31,"highlight_end":62}],"label":null,"suggested_replacement":null,"suggestion_applicability":null,"expansion":null}],"children":[{"message":"associated function defined here","code":null,"level":"note","spans":[{"file_name":"/home/z/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/openh264-0.6.6/src/encoder.rs","byte_start":11551,"byte_end":11554,"line_start":315,"line_end":315,"column_start":12,"column_end":15,"is_primary":true,"text":[{"text":" pub fn new() -> Result<Self, Error> {","highlight_start":12,"highlight_end":15}],"label":null,"suggested_replacement":null,"suggestion_applicability":null,"expansion":null}],"children":[],"rendered":null},{"message":"remove the extra arguments","code":null,"level":"help","spans":[{"file_name":"src/encoder.rs","byte_start":4618,"byte_end":4656,"line_start":127,"line_end":127,"column_start":21,"column_end":59,"is_primary":true,"text":[{"text":" openh264::encoder::Width(width as i32),","highlight_start":21,"highlight_end":59}],"label":null,"suggested_replacement":"","suggestion_applicability":"HasPlaceholders","expansion":null},{"file_name":"src/encoder.rs","byte_start":4656,"byte_end":4718,"line_start":127,"line_end":128,"column_start":59,"column_end":61,"is_primary":true,"text":[{"text":" openh264::encoder::Width(width as i32),","highlight_start":59,"highlight_end":60},{"text":" openh264::encoder::Height(height as i32),","highlight_start":1,"highlight_end":61}],"label":null,"suggested_replacement":"","suggestion_applicability":"HasPlaceholders","expansion":null},{"file_name":"src/encoder.rs","byte_start":4718,"byte_end":4760,"line_start":128,"line_end":130,"column_start":61,"column_end":17,"is_primary":true,"text":[{"text":" openh264::encoder::Height(height as i32),","highlight_start":61,"highlight_end":62},{"text":" rc,","highlight_start":1,"highlight_end":24},{"text":" ).map_err(|e| anyhow::anyhow!(\"openh264 init failed: {:?}\", e))?;","highlight_start":1,"highlight_end":17}],"label":null,"suggested_replacement":"","suggestion_applicability":"HasPlaceholders","expansion":null}],"children":[],"rendered":null}],"rendered":"\u001b[1m\u001b[91merror[E0061]\u001b[0m\u001b[1m: this function takes 0 arguments but 3 arguments were supplied\u001b[0m\n \u001b[1m\u001b[94m--> \u001b[0msrc/encoder.rs:126:31\n \u001b[1m\u001b[94m|\u001b[0m\n\u001b[1m\u001b[94m126\u001b[0m \u001b[1m\u001b[94m|\u001b[0m let encoder = openh264::encoder::Encoder::new(\n \u001b[1m\u001b[94m|\u001b[0m \u001b[1m\u001b[91m^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\u001b[0m\n\u001b[1m\u001b[94m127\u001b[0m \u001b[1m\u001b[94m|\u001b[0m openh264::encoder::Width(width as i32),\n \u001b[1m\u001b[94m|\u001b[0m \u001b[1m\u001b[94m--------------------------------------\u001b[0m \u001b[1m\u001b[94munexpected argument #1\u001b[0m\n\u001b[1m\u001b[94m128\u001b[0m \u001b[1m\u001b[94m|\u001b[0m openh264::encoder::Height(height as i32),\n \u001b[1m\u001b[94m|\u001b[0m \u001b[1m\u001b[94m----------------------------------------\u001b[0m \u001b[1m\u001b[94munexpected argument #2\u001b[0m\n\u001b[1m\u001b[94m129\u001b[0m \u001b[1m\u001b[94m|\u001b[0m rc,\n \u001b[1m\u001b[94m|\u001b[0m \u001b[1m\u001b[94m--\u001b[0m \u001b[1m\u001b[94munexpected argument #3\u001b[0m\n \u001b[1m\u001b[94m|\u001b[0m\n\u001b[1m\u001b[92mnote\u001b[0m: associated function defined here\n \u001b[1m\u001b[94m--> \u001b[0m/home/z/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/openh264-0.6.6/src/encoder.rs:315:12\n \u001b[1m\u001b[94m|\u001b[0m\n\u001b[1m\u001b[94m315\u001b[0m \u001b[1m\u001b[94m|\u001b[0m pub fn new() -> Result<Self, Error> {\n \u001b[1m\u001b[94m|\u001b[0m \u001b[1m\u001b[92m^^^\u001b[0m\n\u001b[1m\u001b[96mhelp\u001b[0m: remove the extra arguments\n \u001b[1m\u001b[94m|\u001b[0m\n\u001b[1m\u001b[94m127\u001b[0m \u001b[91m- \u001b[0m \u001b[91mopenh264::encoder::Width(width as i32),\u001b[0m\n\u001b[1m\u001b[94m128\u001b[0m \u001b[91m- openh264::encoder::Height(height as i32),\u001b[0m\n\u001b[1m\u001b[94m129\u001b[0m \u001b[91m- rc,\u001b[0m\n\u001b[1m\u001b[94m130\u001b[0m \u001b[91m- \u001b[0m).map_err(|e| anyhow::anyhow!(\"openh264 init failed: {:?}\", e))?;\n\u001b[1m\u001b[94m127\u001b[0m \u001b[92m+ \u001b[0m ).map_err(|e| anyhow::anyhow!(\"openh264 init failed: {:?}\", e))?;\n \u001b[1m\u001b[94m|\u001b[0m\n\n"}
|
|
{"$message_type":"diagnostic","message":"this function takes 2 arguments but 6 arguments were supplied","code":{"code":"E0061","explanation":"An invalid number of arguments was passed when calling a function.\n\nErroneous code example:\n\n```compile_fail,E0061\nfn f(u: i32) {}\n\nf(); // error!\n```\n\nThe number of arguments passed to a function must match the number of arguments\nspecified in the function signature.\n\nFor example, a function like:\n\n```\nfn f(a: u16, b: &str) {}\n```\n\nMust always be called with exactly two arguments, e.g., `f(2, \"test\")`.\n\nNote that Rust does not have a notion of optional function arguments or\nvariadic functions (except for its C-FFI).\n"},"level":"error","spans":[{"file_name":"src/encoder.rs","byte_start":5642,"byte_end":5653,"line_start":151,"line_end":151,"column_start":21,"column_end":32,"is_primary":false,"text":[{"text":" self.height,","highlight_start":21,"highlight_end":32}],"label":"unexpected argument #3 of type `usize`","suggested_replacement":null,"suggestion_applicability":null,"expansion":null},{"file_name":"src/encoder.rs","byte_start":5675,"byte_end":5676,"line_start":152,"line_end":152,"column_start":21,"column_end":22,"is_primary":false,"text":[{"text":" y,","highlight_start":21,"highlight_end":22}],"label":"unexpected argument #4 of type `Vec<u8>`","suggested_replacement":null,"suggestion_applicability":null,"expansion":null},{"file_name":"src/encoder.rs","byte_start":5698,"byte_end":5699,"line_start":153,"line_end":153,"column_start":21,"column_end":22,"is_primary":false,"text":[{"text":" u,","highlight_start":21,"highlight_end":22}],"label":"unexpected argument #5 of type `Vec<u8>`","suggested_replacement":null,"suggestion_applicability":null,"expansion":null},{"file_name":"src/encoder.rs","byte_start":5721,"byte_end":5722,"line_start":154,"line_end":154,"column_start":21,"column_end":22,"is_primary":false,"text":[{"text":" v,","highlight_start":21,"highlight_end":22}],"label":"unexpected argument #6 of type `Vec<u8>`","suggested_replacement":null,"suggestion_applicability":null,"expansion":null},{"file_name":"src/encoder.rs","byte_start":5457,"byte_end":5490,"line_start":148,"line_end":148,"column_start":27,"column_end":60,"is_primary":true,"text":[{"text":" let yuv = openh264::formats::YUVBuffer::new(","highlight_start":27,"highlight_end":60}],"label":null,"suggested_replacement":null,"suggestion_applicability":null,"expansion":null}],"children":[{"message":"associated function defined here","code":null,"level":"note","spans":[{"file_name":"/home/z/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/openh264-0.6.6/src/formats/yuv.rs","byte_start":2850,"byte_end":2853,"line_start":95,"line_end":95,"column_start":12,"column_end":15,"is_primary":true,"text":[{"text":" pub fn new(width: usize, height: usize) -> Self {","highlight_start":12,"highlight_end":15}],"label":null,"suggested_replacement":null,"suggestion_applicability":null,"expansion":null}],"children":[],"rendered":null},{"message":"remove the extra arguments","code":null,"level":"help","spans":[{"file_name":"src/encoder.rs","byte_start":5620,"byte_end":5653,"line_start":150,"line_end":151,"column_start":31,"column_end":32,"is_primary":true,"text":[{"text":" self.width,","highlight_start":31,"highlight_end":32},{"text":" self.height,","highlight_start":1,"highlight_end":32}],"label":null,"suggested_replacement":"","suggestion_applicability":"HasPlaceholders","expansion":null},{"file_name":"src/encoder.rs","byte_start":5653,"byte_end":5676,"line_start":151,"line_end":152,"column_start":32,"column_end":22,"is_primary":true,"text":[{"text":" self.height,","highlight_start":32,"highlight_end":33},{"text":" y,","highlight_start":1,"highlight_end":22}],"label":null,"suggested_replacement":"","suggestion_applicability":"HasPlaceholders","expansion":null},{"file_name":"src/encoder.rs","byte_start":5676,"byte_end":5699,"line_start":152,"line_end":153,"column_start":22,"column_end":22,"is_primary":true,"text":[{"text":" y,","highlight_start":22,"highlight_end":23},{"text":" u,","highlight_start":1,"highlight_end":22}],"label":null,"suggested_replacement":"","suggestion_applicability":"HasPlaceholders","expansion":null},{"file_name":"src/encoder.rs","byte_start":5699,"byte_end":5722,"line_start":153,"line_end":154,"column_start":22,"column_end":22,"is_primary":true,"text":[{"text":" u,","highlight_start":22,"highlight_end":23},{"text":" v,","highlight_start":1,"highlight_end":22}],"label":null,"suggested_replacement":"","suggestion_applicability":"HasPlaceholders","expansion":null}],"children":[],"rendered":null}],"rendered":"\u001b[1m\u001b[91merror[E0061]\u001b[0m\u001b[1m: this function takes 2 arguments but 6 arguments were supplied\u001b[0m\n \u001b[1m\u001b[94m--> \u001b[0msrc/encoder.rs:148:27\n \u001b[1m\u001b[94m|\u001b[0m\n\u001b[1m\u001b[94m148\u001b[0m \u001b[1m\u001b[94m|\u001b[0m let yuv = openh264::formats::YUVBuffer::new(\n \u001b[1m\u001b[94m|\u001b[0m \u001b[1m\u001b[91m^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\u001b[0m\n\u001b[1m\u001b[94m...\u001b[0m\n\u001b[1m\u001b[94m151\u001b[0m \u001b[1m\u001b[94m|\u001b[0m self.height,\n \u001b[1m\u001b[94m|\u001b[0m \u001b[1m\u001b[94m-----------\u001b[0m \u001b[1m\u001b[94munexpected argument #3 of type `usize`\u001b[0m\n\u001b[1m\u001b[94m152\u001b[0m \u001b[1m\u001b[94m|\u001b[0m y,\n \u001b[1m\u001b[94m|\u001b[0m \u001b[1m\u001b[94m-\u001b[0m \u001b[1m\u001b[94munexpected argument #4 of type `Vec<u8>`\u001b[0m\n\u001b[1m\u001b[94m153\u001b[0m \u001b[1m\u001b[94m|\u001b[0m u,\n \u001b[1m\u001b[94m|\u001b[0m \u001b[1m\u001b[94m-\u001b[0m \u001b[1m\u001b[94munexpected argument #5 of type `Vec<u8>`\u001b[0m\n\u001b[1m\u001b[94m154\u001b[0m \u001b[1m\u001b[94m|\u001b[0m v,\n \u001b[1m\u001b[94m|\u001b[0m \u001b[1m\u001b[94m-\u001b[0m \u001b[1m\u001b[94munexpected argument #6 of type `Vec<u8>`\u001b[0m\n \u001b[1m\u001b[94m|\u001b[0m\n\u001b[1m\u001b[92mnote\u001b[0m: associated function defined here\n \u001b[1m\u001b[94m--> \u001b[0m/home/z/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/openh264-0.6.6/src/formats/yuv.rs:95:12\n \u001b[1m\u001b[94m|\u001b[0m\n\u001b[1m\u001b[94m 95\u001b[0m \u001b[1m\u001b[94m|\u001b[0m pub fn new(width: usize, height: usize) -> Self {\n \u001b[1m\u001b[94m|\u001b[0m \u001b[1m\u001b[92m^^^\u001b[0m\n\u001b[1m\u001b[96mhelp\u001b[0m: remove the extra arguments\n \u001b[1m\u001b[94m|\u001b[0m\n\u001b[1m\u001b[94m150\u001b[0m \u001b[91m- \u001b[0m self.width\u001b[91m,\u001b[0m\n\u001b[1m\u001b[94m151\u001b[0m \u001b[91m- self.height,\u001b[0m\n\u001b[1m\u001b[94m152\u001b[0m \u001b[91m- y\u001b[0m,\n\u001b[1m\u001b[94m153\u001b[0m \u001b[91m- \u001b[0m u,\n\u001b[1m\u001b[94m154\u001b[0m \u001b[91m- \u001b[0m v,\n\u001b[1m\u001b[94m150\u001b[0m \u001b[92m+ \u001b[0m self.width,\n \u001b[1m\u001b[94m|\u001b[0m\n\n"}
|
|
{"$message_type":"diagnostic","message":"no method named `as_ref` found for struct `EncodedBitStream<'a>` in the current scope","code":{"code":"E0599","explanation":"This error occurs when a method is used on a type which doesn't implement it:\n\nErroneous code example:\n\n```compile_fail,E0599\nstruct Mouth;\n\nlet x = Mouth;\nx.chocolate(); // error: no method named `chocolate` found for type `Mouth`\n // in the current scope\n```\n\nIn this case, you need to implement the `chocolate` method to fix the error:\n\n```\nstruct Mouth;\n\nimpl Mouth {\n fn chocolate(&self) { // We implement the `chocolate` method here.\n println!(\"Hmmm! I love chocolate!\");\n }\n}\n\nlet x = Mouth;\nx.chocolate(); // ok!\n```\n"},"level":"error","spans":[{"file_name":"src/encoder.rs","byte_start":6700,"byte_end":6706,"line_start":177,"line_end":177,"column_start":41,"column_end":47,"is_primary":true,"text":[{"text":" let payload = bitstream.as_ref().to_vec();","highlight_start":41,"highlight_end":47}],"label":"method not found in `EncodedBitStream<'_>`","suggested_replacement":null,"suggestion_applicability":null,"expansion":null}],"children":[],"rendered":"\u001b[1m\u001b[91merror[E0599]\u001b[0m\u001b[1m: no method named `as_ref` found for struct `EncodedBitStream<'a>` in the current scope\u001b[0m\n \u001b[1m\u001b[94m--> \u001b[0msrc/encoder.rs:177:41\n \u001b[1m\u001b[94m|\u001b[0m\n\u001b[1m\u001b[94m177\u001b[0m \u001b[1m\u001b[94m|\u001b[0m let payload = bitstream.as_ref().to_vec();\n \u001b[1m\u001b[94m|\u001b[0m \u001b[1m\u001b[91m^^^^^^\u001b[0m \u001b[1m\u001b[91mmethod not found in `EncodedBitStream<'_>`\u001b[0m\n\n"}
|
|
{"$message_type":"diagnostic","message":"no method named `move_mouse` found for struct `Enigo` in the current scope","code":{"code":"E0599","explanation":"This error occurs when a method is used on a type which doesn't implement it:\n\nErroneous code example:\n\n```compile_fail,E0599\nstruct Mouth;\n\nlet x = Mouth;\nx.chocolate(); // error: no method named `chocolate` found for type `Mouth`\n // in the current scope\n```\n\nIn this case, you need to implement the `chocolate` method to fix the error:\n\n```\nstruct Mouth;\n\nimpl Mouth {\n fn chocolate(&self) { // We implement the `chocolate` method here.\n println!(\"Hmmm! I love chocolate!\");\n }\n}\n\nlet x = Mouth;\nx.chocolate(); // ok!\n```\n"},"level":"error","spans":[{"file_name":"src/input.rs","byte_start":3485,"byte_end":3509,"line_start":90,"line_end":91,"column_start":9,"column_end":14,"is_primary":false,"text":[{"text":" self.enigo","highlight_start":9,"highlight_end":19},{"text":" .move_mouse(x, y, Coordinate::Abs)","highlight_start":1,"highlight_end":14}],"label":"","suggested_replacement":null,"suggestion_applicability":null,"expansion":null},{"file_name":"src/input.rs","byte_start":3509,"byte_end":3519,"line_start":91,"line_end":91,"column_start":14,"column_end":24,"is_primary":true,"text":[{"text":" .move_mouse(x, y, Coordinate::Abs)","highlight_start":14,"highlight_end":24}],"label":"method not found in `Enigo`","suggested_replacement":null,"suggestion_applicability":null,"expansion":null},{"file_name":"/home/z/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/enigo-0.2.1/src/lib.rs","byte_start":12941,"byte_end":12951,"line_start":316,"line_end":316,"column_start":8,"column_end":18,"is_primary":false,"text":[{"text":" fn move_mouse(&mut self, x: i32, y: i32, coordinate: Coordinate) -> InputResult<()>;","highlight_start":8,"highlight_end":18}],"label":"the method is available for `Enigo` here","suggested_replacement":null,"suggestion_applicability":null,"expansion":null}],"children":[{"message":"items from traits can only be used if the trait is in scope","code":null,"level":"help","spans":[],"children":[],"rendered":null},{"message":"trait `Mouse` which provides `move_mouse` is implemented but not in scope; perhaps you want to import it","code":null,"level":"help","spans":[{"file_name":"src/input.rs","byte_start":531,"byte_end":531,"line_start":13,"line_end":13,"column_start":1,"column_end":1,"is_primary":true,"text":[{"text":"use anyhow::Result;","highlight_start":1,"highlight_end":1}],"label":null,"suggested_replacement":"use enigo::Mouse;\n","suggestion_applicability":"MaybeIncorrect","expansion":null}],"children":[],"rendered":null}],"rendered":"\u001b[1m\u001b[91merror[E0599]\u001b[0m\u001b[1m: no method named `move_mouse` found for struct `Enigo` in the current scope\u001b[0m\n \u001b[1m\u001b[94m--> \u001b[0msrc/input.rs:91:14\n \u001b[1m\u001b[94m|\u001b[0m\n\u001b[1m\u001b[94m 90\u001b[0m \u001b[1m\u001b[94m|\u001b[0m \u001b[1m\u001b[94m/\u001b[0m self.enigo\n\u001b[1m\u001b[94m 91\u001b[0m \u001b[1m\u001b[94m|\u001b[0m \u001b[1m\u001b[94m|\u001b[0m .move_mouse(x, y, Coordinate::Abs)\n \u001b[1m\u001b[94m|\u001b[0m \u001b[1m\u001b[94m|\u001b[0m \u001b[1m\u001b[94m-\u001b[0m\u001b[1m\u001b[91m^^^^^^^^^^\u001b[0m \u001b[1m\u001b[91mmethod not found in `Enigo`\u001b[0m\n \u001b[1m\u001b[94m|\u001b[0m \u001b[1m\u001b[94m|_____________|\u001b[0m\n \u001b[1m\u001b[94m|\u001b[0m\n \u001b[1m\u001b[94m|\u001b[0m\n \u001b[1m\u001b[94m::: \u001b[0m/home/z/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/enigo-0.2.1/src/lib.rs:316:8\n \u001b[1m\u001b[94m|\u001b[0m\n\u001b[1m\u001b[94m316\u001b[0m \u001b[1m\u001b[94m|\u001b[0m fn move_mouse(&mut self, x: i32, y: i32, coordinate: Coordinate) -> InputResult<()>;\n \u001b[1m\u001b[94m|\u001b[0m \u001b[1m\u001b[94m----------\u001b[0m \u001b[1m\u001b[94mthe method is available for `Enigo` here\u001b[0m\n \u001b[1m\u001b[94m|\u001b[0m\n \u001b[1m\u001b[94m= \u001b[0m\u001b[1mhelp\u001b[0m: items from traits can only be used if the trait is in scope\n\u001b[1m\u001b[96mhelp\u001b[0m: trait `Mouse` which provides `move_mouse` is implemented but not in scope; perhaps you want to import it\n \u001b[1m\u001b[94m|\u001b[0m\n\u001b[1m\u001b[94m 13\u001b[0m \u001b[92m+ use enigo::Mouse;\u001b[0m\n \u001b[1m\u001b[94m|\u001b[0m\n\n"}
|
|
{"$message_type":"diagnostic","message":"no method named `button` found for struct `Enigo` in the current scope","code":{"code":"E0599","explanation":"This error occurs when a method is used on a type which doesn't implement it:\n\nErroneous code example:\n\n```compile_fail,E0599\nstruct Mouth;\n\nlet x = Mouth;\nx.chocolate(); // error: no method named `chocolate` found for type `Mouth`\n // in the current scope\n```\n\nIn this case, you need to implement the `chocolate` method to fix the error:\n\n```\nstruct Mouth;\n\nimpl Mouth {\n fn chocolate(&self) { // We implement the `chocolate` method here.\n println!(\"Hmmm! I love chocolate!\");\n }\n}\n\nlet x = Mouth;\nx.chocolate(); // ok!\n```\n"},"level":"error","spans":[{"file_name":"src/input.rs","byte_start":3908,"byte_end":3932,"line_start":102,"line_end":103,"column_start":9,"column_end":14,"is_primary":false,"text":[{"text":" self.enigo","highlight_start":9,"highlight_end":19},{"text":" .button(button, Direction::Press)","highlight_start":1,"highlight_end":14}],"label":"","suggested_replacement":null,"suggestion_applicability":null,"expansion":null},{"file_name":"src/input.rs","byte_start":3932,"byte_end":3938,"line_start":103,"line_end":103,"column_start":14,"column_end":20,"is_primary":true,"text":[{"text":" .button(button, Direction::Press)","highlight_start":14,"highlight_end":20}],"label":"method not found in `Enigo`","suggested_replacement":null,"suggestion_applicability":null,"expansion":null},{"file_name":"/home/z/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/enigo-0.2.1/src/lib.rs","byte_start":11962,"byte_end":11968,"line_start":296,"line_end":296,"column_start":8,"column_end":14,"is_primary":false,"text":[{"text":" fn button(&mut self, button: Button, direction: Direction) -> InputResult<()>;","highlight_start":8,"highlight_end":14}],"label":"the method is available for `Enigo` here","suggested_replacement":null,"suggestion_applicability":null,"expansion":null}],"children":[{"message":"items from traits can only be used if the trait is in scope","code":null,"level":"help","spans":[],"children":[],"rendered":null},{"message":"trait `Mouse` which provides `button` is implemented but not in scope; perhaps you want to import it","code":null,"level":"help","spans":[{"file_name":"src/input.rs","byte_start":531,"byte_end":531,"line_start":13,"line_end":13,"column_start":1,"column_end":1,"is_primary":true,"text":[{"text":"use anyhow::Result;","highlight_start":1,"highlight_end":1}],"label":null,"suggested_replacement":"use enigo::Mouse;\n","suggestion_applicability":"MaybeIncorrect","expansion":null}],"children":[],"rendered":null}],"rendered":"\u001b[1m\u001b[91merror[E0599]\u001b[0m\u001b[1m: no method named `button` found for struct `Enigo` in the current scope\u001b[0m\n \u001b[1m\u001b[94m--> \u001b[0msrc/input.rs:103:14\n \u001b[1m\u001b[94m|\u001b[0m\n\u001b[1m\u001b[94m102\u001b[0m \u001b[1m\u001b[94m|\u001b[0m \u001b[1m\u001b[94m/\u001b[0m self.enigo\n\u001b[1m\u001b[94m103\u001b[0m \u001b[1m\u001b[94m|\u001b[0m \u001b[1m\u001b[94m|\u001b[0m .button(button, Direction::Press)\n \u001b[1m\u001b[94m|\u001b[0m \u001b[1m\u001b[94m|\u001b[0m \u001b[1m\u001b[94m-\u001b[0m\u001b[1m\u001b[91m^^^^^^\u001b[0m \u001b[1m\u001b[91mmethod not found in `Enigo`\u001b[0m\n \u001b[1m\u001b[94m|\u001b[0m \u001b[1m\u001b[94m|_____________|\u001b[0m\n \u001b[1m\u001b[94m|\u001b[0m\n \u001b[1m\u001b[94m|\u001b[0m\n \u001b[1m\u001b[94m::: \u001b[0m/home/z/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/enigo-0.2.1/src/lib.rs:296:8\n \u001b[1m\u001b[94m|\u001b[0m\n\u001b[1m\u001b[94m296\u001b[0m \u001b[1m\u001b[94m|\u001b[0m fn button(&mut self, button: Button, direction: Direction) -> InputResult<()>;\n \u001b[1m\u001b[94m|\u001b[0m \u001b[1m\u001b[94m------\u001b[0m \u001b[1m\u001b[94mthe method is available for `Enigo` here\u001b[0m\n \u001b[1m\u001b[94m|\u001b[0m\n \u001b[1m\u001b[94m= \u001b[0m\u001b[1mhelp\u001b[0m: items from traits can only be used if the trait is in scope\n\u001b[1m\u001b[96mhelp\u001b[0m: trait `Mouse` which provides `button` is implemented but not in scope; perhaps you want to import it\n \u001b[1m\u001b[94m|\u001b[0m\n\u001b[1m\u001b[94m 13\u001b[0m \u001b[92m+ use enigo::Mouse;\u001b[0m\n \u001b[1m\u001b[94m|\u001b[0m\n\n"}
|
|
{"$message_type":"diagnostic","message":"no method named `button` found for struct `Enigo` in the current scope","code":{"code":"E0599","explanation":"This error occurs when a method is used on a type which doesn't implement it:\n\nErroneous code example:\n\n```compile_fail,E0599\nstruct Mouth;\n\nlet x = Mouth;\nx.chocolate(); // error: no method named `chocolate` found for type `Mouth`\n // in the current scope\n```\n\nIn this case, you need to implement the `chocolate` method to fix the error:\n\n```\nstruct Mouth;\n\nimpl Mouth {\n fn chocolate(&self) { // We implement the `chocolate` method here.\n println!(\"Hmmm! I love chocolate!\");\n }\n}\n\nlet x = Mouth;\nx.chocolate(); // ok!\n```\n"},"level":"error","spans":[{"file_name":"src/input.rs","byte_start":4247,"byte_end":4271,"line_start":111,"line_end":112,"column_start":9,"column_end":14,"is_primary":false,"text":[{"text":" self.enigo","highlight_start":9,"highlight_end":19},{"text":" .button(button, Direction::Release)","highlight_start":1,"highlight_end":14}],"label":"","suggested_replacement":null,"suggestion_applicability":null,"expansion":null},{"file_name":"src/input.rs","byte_start":4271,"byte_end":4277,"line_start":112,"line_end":112,"column_start":14,"column_end":20,"is_primary":true,"text":[{"text":" .button(button, Direction::Release)","highlight_start":14,"highlight_end":20}],"label":"method not found in `Enigo`","suggested_replacement":null,"suggestion_applicability":null,"expansion":null},{"file_name":"/home/z/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/enigo-0.2.1/src/lib.rs","byte_start":11962,"byte_end":11968,"line_start":296,"line_end":296,"column_start":8,"column_end":14,"is_primary":false,"text":[{"text":" fn button(&mut self, button: Button, direction: Direction) -> InputResult<()>;","highlight_start":8,"highlight_end":14}],"label":"the method is available for `Enigo` here","suggested_replacement":null,"suggestion_applicability":null,"expansion":null}],"children":[{"message":"items from traits can only be used if the trait is in scope","code":null,"level":"help","spans":[],"children":[],"rendered":null},{"message":"trait `Mouse` which provides `button` is implemented but not in scope; perhaps you want to import it","code":null,"level":"help","spans":[{"file_name":"src/input.rs","byte_start":531,"byte_end":531,"line_start":13,"line_end":13,"column_start":1,"column_end":1,"is_primary":true,"text":[{"text":"use anyhow::Result;","highlight_start":1,"highlight_end":1}],"label":null,"suggested_replacement":"use enigo::Mouse;\n","suggestion_applicability":"MaybeIncorrect","expansion":null}],"children":[],"rendered":null}],"rendered":"\u001b[1m\u001b[91merror[E0599]\u001b[0m\u001b[1m: no method named `button` found for struct `Enigo` in the current scope\u001b[0m\n \u001b[1m\u001b[94m--> \u001b[0msrc/input.rs:112:14\n \u001b[1m\u001b[94m|\u001b[0m\n\u001b[1m\u001b[94m111\u001b[0m \u001b[1m\u001b[94m|\u001b[0m \u001b[1m\u001b[94m/\u001b[0m self.enigo\n\u001b[1m\u001b[94m112\u001b[0m \u001b[1m\u001b[94m|\u001b[0m \u001b[1m\u001b[94m|\u001b[0m .button(button, Direction::Release)\n \u001b[1m\u001b[94m|\u001b[0m \u001b[1m\u001b[94m|\u001b[0m \u001b[1m\u001b[94m-\u001b[0m\u001b[1m\u001b[91m^^^^^^\u001b[0m \u001b[1m\u001b[91mmethod not found in `Enigo`\u001b[0m\n \u001b[1m\u001b[94m|\u001b[0m \u001b[1m\u001b[94m|_____________|\u001b[0m\n \u001b[1m\u001b[94m|\u001b[0m\n \u001b[1m\u001b[94m|\u001b[0m\n \u001b[1m\u001b[94m::: \u001b[0m/home/z/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/enigo-0.2.1/src/lib.rs:296:8\n \u001b[1m\u001b[94m|\u001b[0m\n\u001b[1m\u001b[94m296\u001b[0m \u001b[1m\u001b[94m|\u001b[0m fn button(&mut self, button: Button, direction: Direction) -> InputResult<()>;\n \u001b[1m\u001b[94m|\u001b[0m \u001b[1m\u001b[94m------\u001b[0m \u001b[1m\u001b[94mthe method is available for `Enigo` here\u001b[0m\n \u001b[1m\u001b[94m|\u001b[0m\n \u001b[1m\u001b[94m= \u001b[0m\u001b[1mhelp\u001b[0m: items from traits can only be used if the trait is in scope\n\u001b[1m\u001b[96mhelp\u001b[0m: trait `Mouse` which provides `button` is implemented but not in scope; perhaps you want to import it\n \u001b[1m\u001b[94m|\u001b[0m\n\u001b[1m\u001b[94m 13\u001b[0m \u001b[92m+ use enigo::Mouse;\u001b[0m\n \u001b[1m\u001b[94m|\u001b[0m\n\n"}
|
|
{"$message_type":"diagnostic","message":"no method named `button` found for struct `Enigo` in the current scope","code":{"code":"E0599","explanation":"This error occurs when a method is used on a type which doesn't implement it:\n\nErroneous code example:\n\n```compile_fail,E0599\nstruct Mouth;\n\nlet x = Mouth;\nx.chocolate(); // error: no method named `chocolate` found for type `Mouth`\n // in the current scope\n```\n\nIn this case, you need to implement the `chocolate` method to fix the error:\n\n```\nstruct Mouth;\n\nimpl Mouth {\n fn chocolate(&self) { // We implement the `chocolate` method here.\n println!(\"Hmmm! I love chocolate!\");\n }\n}\n\nlet x = Mouth;\nx.chocolate(); // ok!\n```\n"},"level":"error","spans":[{"file_name":"src/input.rs","byte_start":4605,"byte_end":4629,"line_start":120,"line_end":121,"column_start":9,"column_end":14,"is_primary":false,"text":[{"text":" self.enigo","highlight_start":9,"highlight_end":19},{"text":" .button(button, Direction::Click)","highlight_start":1,"highlight_end":14}],"label":"","suggested_replacement":null,"suggestion_applicability":null,"expansion":null},{"file_name":"src/input.rs","byte_start":4629,"byte_end":4635,"line_start":121,"line_end":121,"column_start":14,"column_end":20,"is_primary":true,"text":[{"text":" .button(button, Direction::Click)","highlight_start":14,"highlight_end":20}],"label":"method not found in `Enigo`","suggested_replacement":null,"suggestion_applicability":null,"expansion":null},{"file_name":"/home/z/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/enigo-0.2.1/src/lib.rs","byte_start":11962,"byte_end":11968,"line_start":296,"line_end":296,"column_start":8,"column_end":14,"is_primary":false,"text":[{"text":" fn button(&mut self, button: Button, direction: Direction) -> InputResult<()>;","highlight_start":8,"highlight_end":14}],"label":"the method is available for `Enigo` here","suggested_replacement":null,"suggestion_applicability":null,"expansion":null}],"children":[{"message":"items from traits can only be used if the trait is in scope","code":null,"level":"help","spans":[],"children":[],"rendered":null},{"message":"trait `Mouse` which provides `button` is implemented but not in scope; perhaps you want to import it","code":null,"level":"help","spans":[{"file_name":"src/input.rs","byte_start":531,"byte_end":531,"line_start":13,"line_end":13,"column_start":1,"column_end":1,"is_primary":true,"text":[{"text":"use anyhow::Result;","highlight_start":1,"highlight_end":1}],"label":null,"suggested_replacement":"use enigo::Mouse;\n","suggestion_applicability":"MaybeIncorrect","expansion":null}],"children":[],"rendered":null}],"rendered":"\u001b[1m\u001b[91merror[E0599]\u001b[0m\u001b[1m: no method named `button` found for struct `Enigo` in the current scope\u001b[0m\n \u001b[1m\u001b[94m--> \u001b[0msrc/input.rs:121:14\n \u001b[1m\u001b[94m|\u001b[0m\n\u001b[1m\u001b[94m120\u001b[0m \u001b[1m\u001b[94m|\u001b[0m \u001b[1m\u001b[94m/\u001b[0m self.enigo\n\u001b[1m\u001b[94m121\u001b[0m \u001b[1m\u001b[94m|\u001b[0m \u001b[1m\u001b[94m|\u001b[0m .button(button, Direction::Click)\n \u001b[1m\u001b[94m|\u001b[0m \u001b[1m\u001b[94m|\u001b[0m \u001b[1m\u001b[94m-\u001b[0m\u001b[1m\u001b[91m^^^^^^\u001b[0m \u001b[1m\u001b[91mmethod not found in `Enigo`\u001b[0m\n \u001b[1m\u001b[94m|\u001b[0m \u001b[1m\u001b[94m|_____________|\u001b[0m\n \u001b[1m\u001b[94m|\u001b[0m\n \u001b[1m\u001b[94m|\u001b[0m\n \u001b[1m\u001b[94m::: \u001b[0m/home/z/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/enigo-0.2.1/src/lib.rs:296:8\n \u001b[1m\u001b[94m|\u001b[0m\n\u001b[1m\u001b[94m296\u001b[0m \u001b[1m\u001b[94m|\u001b[0m fn button(&mut self, button: Button, direction: Direction) -> InputResult<()>;\n \u001b[1m\u001b[94m|\u001b[0m \u001b[1m\u001b[94m------\u001b[0m \u001b[1m\u001b[94mthe method is available for `Enigo` here\u001b[0m\n \u001b[1m\u001b[94m|\u001b[0m\n \u001b[1m\u001b[94m= \u001b[0m\u001b[1mhelp\u001b[0m: items from traits can only be used if the trait is in scope\n\u001b[1m\u001b[96mhelp\u001b[0m: trait `Mouse` which provides `button` is implemented but not in scope; perhaps you want to import it\n \u001b[1m\u001b[94m|\u001b[0m\n\u001b[1m\u001b[94m 13\u001b[0m \u001b[92m+ use enigo::Mouse;\u001b[0m\n \u001b[1m\u001b[94m|\u001b[0m\n\n"}
|
|
{"$message_type":"diagnostic","message":"no method named `button` found for struct `Enigo` in the current scope","code":{"code":"E0599","explanation":"This error occurs when a method is used on a type which doesn't implement it:\n\nErroneous code example:\n\n```compile_fail,E0599\nstruct Mouth;\n\nlet x = Mouth;\nx.chocolate(); // error: no method named `chocolate` found for type `Mouth`\n // in the current scope\n```\n\nIn this case, you need to implement the `chocolate` method to fix the error:\n\n```\nstruct Mouth;\n\nimpl Mouth {\n fn chocolate(&self) { // We implement the `chocolate` method here.\n println!(\"Hmmm! I love chocolate!\");\n }\n}\n\nlet x = Mouth;\nx.chocolate(); // ok!\n```\n"},"level":"error","spans":[{"file_name":"src/input.rs","byte_start":5004,"byte_end":5028,"line_start":130,"line_end":131,"column_start":9,"column_end":14,"is_primary":false,"text":[{"text":" self.enigo","highlight_start":9,"highlight_end":19},{"text":" .button(button, Direction::Click)","highlight_start":1,"highlight_end":14}],"label":"","suggested_replacement":null,"suggestion_applicability":null,"expansion":null},{"file_name":"src/input.rs","byte_start":5028,"byte_end":5034,"line_start":131,"line_end":131,"column_start":14,"column_end":20,"is_primary":true,"text":[{"text":" .button(button, Direction::Click)","highlight_start":14,"highlight_end":20}],"label":"method not found in `Enigo`","suggested_replacement":null,"suggestion_applicability":null,"expansion":null},{"file_name":"/home/z/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/enigo-0.2.1/src/lib.rs","byte_start":11962,"byte_end":11968,"line_start":296,"line_end":296,"column_start":8,"column_end":14,"is_primary":false,"text":[{"text":" fn button(&mut self, button: Button, direction: Direction) -> InputResult<()>;","highlight_start":8,"highlight_end":14}],"label":"the method is available for `Enigo` here","suggested_replacement":null,"suggestion_applicability":null,"expansion":null}],"children":[{"message":"items from traits can only be used if the trait is in scope","code":null,"level":"help","spans":[],"children":[],"rendered":null},{"message":"trait `Mouse` which provides `button` is implemented but not in scope; perhaps you want to import it","code":null,"level":"help","spans":[{"file_name":"src/input.rs","byte_start":531,"byte_end":531,"line_start":13,"line_end":13,"column_start":1,"column_end":1,"is_primary":true,"text":[{"text":"use anyhow::Result;","highlight_start":1,"highlight_end":1}],"label":null,"suggested_replacement":"use enigo::Mouse;\n","suggestion_applicability":"MaybeIncorrect","expansion":null}],"children":[],"rendered":null}],"rendered":"\u001b[1m\u001b[91merror[E0599]\u001b[0m\u001b[1m: no method named `button` found for struct `Enigo` in the current scope\u001b[0m\n \u001b[1m\u001b[94m--> \u001b[0msrc/input.rs:131:14\n \u001b[1m\u001b[94m|\u001b[0m\n\u001b[1m\u001b[94m130\u001b[0m \u001b[1m\u001b[94m|\u001b[0m \u001b[1m\u001b[94m/\u001b[0m self.enigo\n\u001b[1m\u001b[94m131\u001b[0m \u001b[1m\u001b[94m|\u001b[0m \u001b[1m\u001b[94m|\u001b[0m .button(button, Direction::Click)\n \u001b[1m\u001b[94m|\u001b[0m \u001b[1m\u001b[94m|\u001b[0m \u001b[1m\u001b[94m-\u001b[0m\u001b[1m\u001b[91m^^^^^^\u001b[0m \u001b[1m\u001b[91mmethod not found in `Enigo`\u001b[0m\n \u001b[1m\u001b[94m|\u001b[0m \u001b[1m\u001b[94m|_____________|\u001b[0m\n \u001b[1m\u001b[94m|\u001b[0m\n \u001b[1m\u001b[94m|\u001b[0m\n \u001b[1m\u001b[94m::: \u001b[0m/home/z/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/enigo-0.2.1/src/lib.rs:296:8\n \u001b[1m\u001b[94m|\u001b[0m\n\u001b[1m\u001b[94m296\u001b[0m \u001b[1m\u001b[94m|\u001b[0m fn button(&mut self, button: Button, direction: Direction) -> InputResult<()>;\n \u001b[1m\u001b[94m|\u001b[0m \u001b[1m\u001b[94m------\u001b[0m \u001b[1m\u001b[94mthe method is available for `Enigo` here\u001b[0m\n \u001b[1m\u001b[94m|\u001b[0m\n \u001b[1m\u001b[94m= \u001b[0m\u001b[1mhelp\u001b[0m: items from traits can only be used if the trait is in scope\n\u001b[1m\u001b[96mhelp\u001b[0m: trait `Mouse` which provides `button` is implemented but not in scope; perhaps you want to import it\n \u001b[1m\u001b[94m|\u001b[0m\n\u001b[1m\u001b[94m 13\u001b[0m \u001b[92m+ use enigo::Mouse;\u001b[0m\n \u001b[1m\u001b[94m|\u001b[0m\n\n"}
|
|
{"$message_type":"diagnostic","message":"no method named `button` found for struct `Enigo` in the current scope","code":{"code":"E0599","explanation":"This error occurs when a method is used on a type which doesn't implement it:\n\nErroneous code example:\n\n```compile_fail,E0599\nstruct Mouth;\n\nlet x = Mouth;\nx.chocolate(); // error: no method named `chocolate` found for type `Mouth`\n // in the current scope\n```\n\nIn this case, you need to implement the `chocolate` method to fix the error:\n\n```\nstruct Mouth;\n\nimpl Mouth {\n fn chocolate(&self) { // We implement the `chocolate` method here.\n println!(\"Hmmm! I love chocolate!\");\n }\n}\n\nlet x = Mouth;\nx.chocolate(); // ok!\n```\n"},"level":"error","spans":[{"file_name":"src/input.rs","byte_start":5217,"byte_end":5241,"line_start":134,"line_end":135,"column_start":9,"column_end":14,"is_primary":false,"text":[{"text":" self.enigo","highlight_start":9,"highlight_end":19},{"text":" .button(button, Direction::Click)","highlight_start":1,"highlight_end":14}],"label":"","suggested_replacement":null,"suggestion_applicability":null,"expansion":null},{"file_name":"src/input.rs","byte_start":5241,"byte_end":5247,"line_start":135,"line_end":135,"column_start":14,"column_end":20,"is_primary":true,"text":[{"text":" .button(button, Direction::Click)","highlight_start":14,"highlight_end":20}],"label":"method not found in `Enigo`","suggested_replacement":null,"suggestion_applicability":null,"expansion":null},{"file_name":"/home/z/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/enigo-0.2.1/src/lib.rs","byte_start":11962,"byte_end":11968,"line_start":296,"line_end":296,"column_start":8,"column_end":14,"is_primary":false,"text":[{"text":" fn button(&mut self, button: Button, direction: Direction) -> InputResult<()>;","highlight_start":8,"highlight_end":14}],"label":"the method is available for `Enigo` here","suggested_replacement":null,"suggestion_applicability":null,"expansion":null}],"children":[{"message":"items from traits can only be used if the trait is in scope","code":null,"level":"help","spans":[],"children":[],"rendered":null},{"message":"trait `Mouse` which provides `button` is implemented but not in scope; perhaps you want to import it","code":null,"level":"help","spans":[{"file_name":"src/input.rs","byte_start":531,"byte_end":531,"line_start":13,"line_end":13,"column_start":1,"column_end":1,"is_primary":true,"text":[{"text":"use anyhow::Result;","highlight_start":1,"highlight_end":1}],"label":null,"suggested_replacement":"use enigo::Mouse;\n","suggestion_applicability":"MaybeIncorrect","expansion":null}],"children":[],"rendered":null}],"rendered":"\u001b[1m\u001b[91merror[E0599]\u001b[0m\u001b[1m: no method named `button` found for struct `Enigo` in the current scope\u001b[0m\n \u001b[1m\u001b[94m--> \u001b[0msrc/input.rs:135:14\n \u001b[1m\u001b[94m|\u001b[0m\n\u001b[1m\u001b[94m134\u001b[0m \u001b[1m\u001b[94m|\u001b[0m \u001b[1m\u001b[94m/\u001b[0m self.enigo\n\u001b[1m\u001b[94m135\u001b[0m \u001b[1m\u001b[94m|\u001b[0m \u001b[1m\u001b[94m|\u001b[0m .button(button, Direction::Click)\n \u001b[1m\u001b[94m|\u001b[0m \u001b[1m\u001b[94m|\u001b[0m \u001b[1m\u001b[94m-\u001b[0m\u001b[1m\u001b[91m^^^^^^\u001b[0m \u001b[1m\u001b[91mmethod not found in `Enigo`\u001b[0m\n \u001b[1m\u001b[94m|\u001b[0m \u001b[1m\u001b[94m|_____________|\u001b[0m\n \u001b[1m\u001b[94m|\u001b[0m\n \u001b[1m\u001b[94m|\u001b[0m\n \u001b[1m\u001b[94m::: \u001b[0m/home/z/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/enigo-0.2.1/src/lib.rs:296:8\n \u001b[1m\u001b[94m|\u001b[0m\n\u001b[1m\u001b[94m296\u001b[0m \u001b[1m\u001b[94m|\u001b[0m fn button(&mut self, button: Button, direction: Direction) -> InputResult<()>;\n \u001b[1m\u001b[94m|\u001b[0m \u001b[1m\u001b[94m------\u001b[0m \u001b[1m\u001b[94mthe method is available for `Enigo` here\u001b[0m\n \u001b[1m\u001b[94m|\u001b[0m\n \u001b[1m\u001b[94m= \u001b[0m\u001b[1mhelp\u001b[0m: items from traits can only be used if the trait is in scope\n\u001b[1m\u001b[96mhelp\u001b[0m: trait `Mouse` which provides `button` is implemented but not in scope; perhaps you want to import it\n \u001b[1m\u001b[94m|\u001b[0m\n\u001b[1m\u001b[94m 13\u001b[0m \u001b[92m+ use enigo::Mouse;\u001b[0m\n \u001b[1m\u001b[94m|\u001b[0m\n\n"}
|
|
{"$message_type":"diagnostic","message":"no variant or associated item named `ScrollDown` found for enum `Direction` in the current scope","code":{"code":"E0599","explanation":"This error occurs when a method is used on a type which doesn't implement it:\n\nErroneous code example:\n\n```compile_fail,E0599\nstruct Mouth;\n\nlet x = Mouth;\nx.chocolate(); // error: no method named `chocolate` found for type `Mouth`\n // in the current scope\n```\n\nIn this case, you need to implement the `chocolate` method to fix the error:\n\n```\nstruct Mouth;\n\nimpl Mouth {\n fn chocolate(&self) { // We implement the `chocolate` method here.\n println!(\"Hmmm! I love chocolate!\");\n }\n}\n\nlet x = Mouth;\nx.chocolate(); // ok!\n```\n"},"level":"error","spans":[{"file_name":"src/input.rs","byte_start":5870,"byte_end":5880,"line_start":151,"line_end":151,"column_start":28,"column_end":38,"is_primary":true,"text":[{"text":" Direction::ScrollDown","highlight_start":28,"highlight_end":38}],"label":"variant or associated item not found in `Direction`","suggested_replacement":null,"suggestion_applicability":null,"expansion":null}],"children":[],"rendered":"\u001b[1m\u001b[91merror[E0599]\u001b[0m\u001b[1m: no variant or associated item named `ScrollDown` found for enum `Direction` in the current scope\u001b[0m\n \u001b[1m\u001b[94m--> \u001b[0msrc/input.rs:151:28\n \u001b[1m\u001b[94m|\u001b[0m\n\u001b[1m\u001b[94m151\u001b[0m \u001b[1m\u001b[94m|\u001b[0m Direction::ScrollDown\n \u001b[1m\u001b[94m|\u001b[0m \u001b[1m\u001b[91m^^^^^^^^^^\u001b[0m \u001b[1m\u001b[91mvariant or associated item not found in `Direction`\u001b[0m\n\n"}
|
|
{"$message_type":"diagnostic","message":"no variant or associated item named `ScrollUp` found for enum `Direction` in the current scope","code":{"code":"E0599","explanation":"This error occurs when a method is used on a type which doesn't implement it:\n\nErroneous code example:\n\n```compile_fail,E0599\nstruct Mouth;\n\nlet x = Mouth;\nx.chocolate(); // error: no method named `chocolate` found for type `Mouth`\n // in the current scope\n```\n\nIn this case, you need to implement the `chocolate` method to fix the error:\n\n```\nstruct Mouth;\n\nimpl Mouth {\n fn chocolate(&self) { // We implement the `chocolate` method here.\n println!(\"Hmmm! I love chocolate!\");\n }\n}\n\nlet x = Mouth;\nx.chocolate(); // ok!\n```\n"},"level":"error","spans":[{"file_name":"src/input.rs","byte_start":5929,"byte_end":5937,"line_start":153,"line_end":153,"column_start":28,"column_end":36,"is_primary":true,"text":[{"text":" Direction::ScrollUp","highlight_start":28,"highlight_end":36}],"label":"variant or associated item not found in `Direction`","suggested_replacement":null,"suggestion_applicability":null,"expansion":null}],"children":[],"rendered":"\u001b[1m\u001b[91merror[E0599]\u001b[0m\u001b[1m: no variant or associated item named `ScrollUp` found for enum `Direction` in the current scope\u001b[0m\n \u001b[1m\u001b[94m--> \u001b[0msrc/input.rs:153:28\n \u001b[1m\u001b[94m|\u001b[0m\n\u001b[1m\u001b[94m153\u001b[0m \u001b[1m\u001b[94m|\u001b[0m Direction::ScrollUp\n \u001b[1m\u001b[94m|\u001b[0m \u001b[1m\u001b[91m^^^^^^^^\u001b[0m \u001b[1m\u001b[91mvariant or associated item not found in `Direction`\u001b[0m\n\n"}
|
|
{"$message_type":"diagnostic","message":"no method named `scroll_y` found for struct `Enigo` in the current scope","code":{"code":"E0599","explanation":"This error occurs when a method is used on a type which doesn't implement it:\n\nErroneous code example:\n\n```compile_fail,E0599\nstruct Mouth;\n\nlet x = Mouth;\nx.chocolate(); // error: no method named `chocolate` found for type `Mouth`\n // in the current scope\n```\n\nIn this case, you need to implement the `chocolate` method to fix the error:\n\n```\nstruct Mouth;\n\nimpl Mouth {\n fn chocolate(&self) { // We implement the `chocolate` method here.\n println!(\"Hmmm! I love chocolate!\");\n }\n}\n\nlet x = Mouth;\nx.chocolate(); // ok!\n```\n"},"level":"error","spans":[{"file_name":"src/input.rs","byte_start":6087,"byte_end":6119,"line_start":157,"line_end":158,"column_start":17,"column_end":22,"is_primary":false,"text":[{"text":" self.enigo","highlight_start":17,"highlight_end":27},{"text":" .scroll_y(1, direction)","highlight_start":1,"highlight_end":22}],"label":"","suggested_replacement":null,"suggestion_applicability":null,"expansion":null},{"file_name":"src/input.rs","byte_start":6119,"byte_end":6127,"line_start":158,"line_end":158,"column_start":22,"column_end":30,"is_primary":true,"text":[{"text":" .scroll_y(1, direction)","highlight_start":22,"highlight_end":30}],"label":null,"suggested_replacement":null,"suggestion_applicability":null,"expansion":null}],"children":[{"message":"there is a method `scroll` with a similar name","code":null,"level":"help","spans":[{"file_name":"src/input.rs","byte_start":6119,"byte_end":6127,"line_start":158,"line_end":158,"column_start":22,"column_end":30,"is_primary":true,"text":[{"text":" .scroll_y(1, direction)","highlight_start":22,"highlight_end":30}],"label":null,"suggested_replacement":"scroll","suggestion_applicability":"MaybeIncorrect","expansion":null}],"children":[],"rendered":null}],"rendered":"\u001b[1m\u001b[91merror[E0599]\u001b[0m\u001b[1m: no method named `scroll_y` found for struct `Enigo` in the current scope\u001b[0m\n \u001b[1m\u001b[94m--> \u001b[0msrc/input.rs:158:22\n \u001b[1m\u001b[94m|\u001b[0m\n\u001b[1m\u001b[94m157\u001b[0m \u001b[1m\u001b[94m|\u001b[0m \u001b[1m\u001b[94m/\u001b[0m self.enigo\n\u001b[1m\u001b[94m158\u001b[0m \u001b[1m\u001b[94m|\u001b[0m \u001b[1m\u001b[94m|\u001b[0m .scroll_y(1, direction)\n \u001b[1m\u001b[94m|\u001b[0m \u001b[1m\u001b[94m|_____________________-\u001b[0m\u001b[1m\u001b[91m^^^^^^^^\u001b[0m\n \u001b[1m\u001b[94m|\u001b[0m\n\u001b[1m\u001b[96mhelp\u001b[0m: there is a method `scroll` with a similar name\n \u001b[1m\u001b[94m|\u001b[0m\n\u001b[1m\u001b[94m158\u001b[0m \u001b[91m- \u001b[0m .\u001b[91mscroll_y\u001b[0m(1, direction)\n\u001b[1m\u001b[94m158\u001b[0m \u001b[92m+ \u001b[0m .\u001b[92mscroll\u001b[0m(1, direction)\n \u001b[1m\u001b[94m|\u001b[0m\n\n"}
|
|
{"$message_type":"diagnostic","message":"no variant or associated item named `ScrollRight` found for enum `Direction` in the current scope","code":{"code":"E0599","explanation":"This error occurs when a method is used on a type which doesn't implement it:\n\nErroneous code example:\n\n```compile_fail,E0599\nstruct Mouth;\n\nlet x = Mouth;\nx.chocolate(); // error: no method named `chocolate` found for type `Mouth`\n // in the current scope\n```\n\nIn this case, you need to implement the `chocolate` method to fix the error:\n\n```\nstruct Mouth;\n\nimpl Mouth {\n fn chocolate(&self) { // We implement the `chocolate` method here.\n println!(\"Hmmm! I love chocolate!\");\n }\n}\n\nlet x = Mouth;\nx.chocolate(); // ok!\n```\n"},"level":"error","spans":[{"file_name":"src/input.rs","byte_start":6373,"byte_end":6384,"line_start":166,"line_end":166,"column_start":28,"column_end":39,"is_primary":true,"text":[{"text":" Direction::ScrollRight","highlight_start":28,"highlight_end":39}],"label":"variant or associated item not found in `Direction`","suggested_replacement":null,"suggestion_applicability":null,"expansion":null}],"children":[],"rendered":"\u001b[1m\u001b[91merror[E0599]\u001b[0m\u001b[1m: no variant or associated item named `ScrollRight` found for enum `Direction` in the current scope\u001b[0m\n \u001b[1m\u001b[94m--> \u001b[0msrc/input.rs:166:28\n \u001b[1m\u001b[94m|\u001b[0m\n\u001b[1m\u001b[94m166\u001b[0m \u001b[1m\u001b[94m|\u001b[0m Direction::ScrollRight\n \u001b[1m\u001b[94m|\u001b[0m \u001b[1m\u001b[91m^^^^^^^^^^^\u001b[0m \u001b[1m\u001b[91mvariant or associated item not found in `Direction`\u001b[0m\n\n"}
|
|
{"$message_type":"diagnostic","message":"no variant or associated item named `ScrollLeft` found for enum `Direction` in the current scope","code":{"code":"E0599","explanation":"This error occurs when a method is used on a type which doesn't implement it:\n\nErroneous code example:\n\n```compile_fail,E0599\nstruct Mouth;\n\nlet x = Mouth;\nx.chocolate(); // error: no method named `chocolate` found for type `Mouth`\n // in the current scope\n```\n\nIn this case, you need to implement the `chocolate` method to fix the error:\n\n```\nstruct Mouth;\n\nimpl Mouth {\n fn chocolate(&self) { // We implement the `chocolate` method here.\n println!(\"Hmmm! I love chocolate!\");\n }\n}\n\nlet x = Mouth;\nx.chocolate(); // ok!\n```\n"},"level":"error","spans":[{"file_name":"src/input.rs","byte_start":6433,"byte_end":6443,"line_start":168,"line_end":168,"column_start":28,"column_end":38,"is_primary":true,"text":[{"text":" Direction::ScrollLeft","highlight_start":28,"highlight_end":38}],"label":"variant or associated item not found in `Direction`","suggested_replacement":null,"suggestion_applicability":null,"expansion":null}],"children":[],"rendered":"\u001b[1m\u001b[91merror[E0599]\u001b[0m\u001b[1m: no variant or associated item named `ScrollLeft` found for enum `Direction` in the current scope\u001b[0m\n \u001b[1m\u001b[94m--> \u001b[0msrc/input.rs:168:28\n \u001b[1m\u001b[94m|\u001b[0m\n\u001b[1m\u001b[94m168\u001b[0m \u001b[1m\u001b[94m|\u001b[0m Direction::ScrollLeft\n \u001b[1m\u001b[94m|\u001b[0m \u001b[1m\u001b[91m^^^^^^^^^^\u001b[0m \u001b[1m\u001b[91mvariant or associated item not found in `Direction`\u001b[0m\n\n"}
|
|
{"$message_type":"diagnostic","message":"no method named `scroll_x` found for struct `Enigo` in the current scope","code":{"code":"E0599","explanation":"This error occurs when a method is used on a type which doesn't implement it:\n\nErroneous code example:\n\n```compile_fail,E0599\nstruct Mouth;\n\nlet x = Mouth;\nx.chocolate(); // error: no method named `chocolate` found for type `Mouth`\n // in the current scope\n```\n\nIn this case, you need to implement the `chocolate` method to fix the error:\n\n```\nstruct Mouth;\n\nimpl Mouth {\n fn chocolate(&self) { // We implement the `chocolate` method here.\n println!(\"Hmmm! I love chocolate!\");\n }\n}\n\nlet x = Mouth;\nx.chocolate(); // ok!\n```\n"},"level":"error","spans":[{"file_name":"src/input.rs","byte_start":6556,"byte_end":6588,"line_start":172,"line_end":173,"column_start":17,"column_end":22,"is_primary":false,"text":[{"text":" self.enigo","highlight_start":17,"highlight_end":27},{"text":" .scroll_x(1, direction)","highlight_start":1,"highlight_end":22}],"label":"","suggested_replacement":null,"suggestion_applicability":null,"expansion":null},{"file_name":"src/input.rs","byte_start":6588,"byte_end":6596,"line_start":173,"line_end":173,"column_start":22,"column_end":30,"is_primary":true,"text":[{"text":" .scroll_x(1, direction)","highlight_start":22,"highlight_end":30}],"label":null,"suggested_replacement":null,"suggestion_applicability":null,"expansion":null}],"children":[{"message":"there is a method `scroll` with a similar name","code":null,"level":"help","spans":[{"file_name":"src/input.rs","byte_start":6588,"byte_end":6596,"line_start":173,"line_end":173,"column_start":22,"column_end":30,"is_primary":true,"text":[{"text":" .scroll_x(1, direction)","highlight_start":22,"highlight_end":30}],"label":null,"suggested_replacement":"scroll","suggestion_applicability":"MaybeIncorrect","expansion":null}],"children":[],"rendered":null}],"rendered":"\u001b[1m\u001b[91merror[E0599]\u001b[0m\u001b[1m: no method named `scroll_x` found for struct `Enigo` in the current scope\u001b[0m\n \u001b[1m\u001b[94m--> \u001b[0msrc/input.rs:173:22\n \u001b[1m\u001b[94m|\u001b[0m\n\u001b[1m\u001b[94m172\u001b[0m \u001b[1m\u001b[94m|\u001b[0m \u001b[1m\u001b[94m/\u001b[0m self.enigo\n\u001b[1m\u001b[94m173\u001b[0m \u001b[1m\u001b[94m|\u001b[0m \u001b[1m\u001b[94m|\u001b[0m .scroll_x(1, direction)\n \u001b[1m\u001b[94m|\u001b[0m \u001b[1m\u001b[94m|_____________________-\u001b[0m\u001b[1m\u001b[91m^^^^^^^^\u001b[0m\n \u001b[1m\u001b[94m|\u001b[0m\n\u001b[1m\u001b[96mhelp\u001b[0m: there is a method `scroll` with a similar name\n \u001b[1m\u001b[94m|\u001b[0m\n\u001b[1m\u001b[94m173\u001b[0m \u001b[91m- \u001b[0m .\u001b[91mscroll_x\u001b[0m(1, direction)\n\u001b[1m\u001b[94m173\u001b[0m \u001b[92m+ \u001b[0m .\u001b[92mscroll\u001b[0m(1, direction)\n \u001b[1m\u001b[94m|\u001b[0m\n\n"}
|
|
{"$message_type":"diagnostic","message":"no method named `key` found for struct `Enigo` in the current scope","code":{"code":"E0599","explanation":"This error occurs when a method is used on a type which doesn't implement it:\n\nErroneous code example:\n\n```compile_fail,E0599\nstruct Mouth;\n\nlet x = Mouth;\nx.chocolate(); // error: no method named `chocolate` found for type `Mouth`\n // in the current scope\n```\n\nIn this case, you need to implement the `chocolate` method to fix the error:\n\n```\nstruct Mouth;\n\nimpl Mouth {\n fn chocolate(&self) { // We implement the `chocolate` method here.\n println!(\"Hmmm! I love chocolate!\");\n }\n}\n\nlet x = Mouth;\nx.chocolate(); // ok!\n```\n"},"level":"error","spans":[{"file_name":"src/input.rs","byte_start":7430,"byte_end":7433,"line_start":194,"line_end":194,"column_start":32,"column_end":35,"is_primary":true,"text":[{"text":" let _ = self.enigo.key(Key::Control, Direction::Press);","highlight_start":32,"highlight_end":35}],"label":"method not found in `Enigo`","suggested_replacement":null,"suggestion_applicability":null,"expansion":null},{"file_name":"/home/z/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/enigo-0.2.1/src/lib.rs","byte_start":10141,"byte_end":10144,"line_start":262,"line_end":262,"column_start":8,"column_end":11,"is_primary":false,"text":[{"text":" fn key(&mut self, key: Key, direction: Direction) -> InputResult<()>;","highlight_start":8,"highlight_end":11}],"label":"the method is available for `Enigo` here","suggested_replacement":null,"suggestion_applicability":null,"expansion":null}],"children":[{"message":"items from traits can only be used if the trait is in scope","code":null,"level":"help","spans":[],"children":[],"rendered":null},{"message":"trait `Keyboard` which provides `key` is implemented but not in scope; perhaps you want to import it","code":null,"level":"help","spans":[{"file_name":"src/input.rs","byte_start":531,"byte_end":531,"line_start":13,"line_end":13,"column_start":1,"column_end":1,"is_primary":true,"text":[{"text":"use anyhow::Result;","highlight_start":1,"highlight_end":1}],"label":null,"suggested_replacement":"use enigo::Keyboard;\n","suggestion_applicability":"MaybeIncorrect","expansion":null}],"children":[],"rendered":null}],"rendered":"\u001b[1m\u001b[91merror[E0599]\u001b[0m\u001b[1m: no method named `key` found for struct `Enigo` in the current scope\u001b[0m\n \u001b[1m\u001b[94m--> \u001b[0msrc/input.rs:194:32\n \u001b[1m\u001b[94m|\u001b[0m\n\u001b[1m\u001b[94m194\u001b[0m \u001b[1m\u001b[94m|\u001b[0m let _ = self.enigo.key(Key::Control, Direction::Press);\n \u001b[1m\u001b[94m|\u001b[0m \u001b[1m\u001b[91m^^^\u001b[0m \u001b[1m\u001b[91mmethod not found in `Enigo`\u001b[0m\n \u001b[1m\u001b[94m|\u001b[0m\n \u001b[1m\u001b[94m::: \u001b[0m/home/z/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/enigo-0.2.1/src/lib.rs:262:8\n \u001b[1m\u001b[94m|\u001b[0m\n\u001b[1m\u001b[94m262\u001b[0m \u001b[1m\u001b[94m|\u001b[0m fn key(&mut self, key: Key, direction: Direction) -> InputResult<()>;\n \u001b[1m\u001b[94m|\u001b[0m \u001b[1m\u001b[94m---\u001b[0m \u001b[1m\u001b[94mthe method is available for `Enigo` here\u001b[0m\n \u001b[1m\u001b[94m|\u001b[0m\n \u001b[1m\u001b[94m= \u001b[0m\u001b[1mhelp\u001b[0m: items from traits can only be used if the trait is in scope\n\u001b[1m\u001b[96mhelp\u001b[0m: trait `Keyboard` which provides `key` is implemented but not in scope; perhaps you want to import it\n \u001b[1m\u001b[94m|\u001b[0m\n\u001b[1m\u001b[94m 13\u001b[0m \u001b[92m+ use enigo::Keyboard;\u001b[0m\n \u001b[1m\u001b[94m|\u001b[0m\n\n"}
|
|
{"$message_type":"diagnostic","message":"no method named `key` found for struct `Enigo` in the current scope","code":{"code":"E0599","explanation":"This error occurs when a method is used on a type which doesn't implement it:\n\nErroneous code example:\n\n```compile_fail,E0599\nstruct Mouth;\n\nlet x = Mouth;\nx.chocolate(); // error: no method named `chocolate` found for type `Mouth`\n // in the current scope\n```\n\nIn this case, you need to implement the `chocolate` method to fix the error:\n\n```\nstruct Mouth;\n\nimpl Mouth {\n fn chocolate(&self) { // We implement the `chocolate` method here.\n println!(\"Hmmm! I love chocolate!\");\n }\n}\n\nlet x = Mouth;\nx.chocolate(); // ok!\n```\n"},"level":"error","spans":[{"file_name":"src/input.rs","byte_start":7564,"byte_end":7567,"line_start":197,"line_end":197,"column_start":32,"column_end":35,"is_primary":true,"text":[{"text":" let _ = self.enigo.key(Key::Shift, Direction::Press);","highlight_start":32,"highlight_end":35}],"label":"method not found in `Enigo`","suggested_replacement":null,"suggestion_applicability":null,"expansion":null},{"file_name":"/home/z/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/enigo-0.2.1/src/lib.rs","byte_start":10141,"byte_end":10144,"line_start":262,"line_end":262,"column_start":8,"column_end":11,"is_primary":false,"text":[{"text":" fn key(&mut self, key: Key, direction: Direction) -> InputResult<()>;","highlight_start":8,"highlight_end":11}],"label":"the method is available for `Enigo` here","suggested_replacement":null,"suggestion_applicability":null,"expansion":null}],"children":[{"message":"items from traits can only be used if the trait is in scope","code":null,"level":"help","spans":[],"children":[],"rendered":null},{"message":"trait `Keyboard` which provides `key` is implemented but not in scope; perhaps you want to import it","code":null,"level":"help","spans":[{"file_name":"src/input.rs","byte_start":531,"byte_end":531,"line_start":13,"line_end":13,"column_start":1,"column_end":1,"is_primary":true,"text":[{"text":"use anyhow::Result;","highlight_start":1,"highlight_end":1}],"label":null,"suggested_replacement":"use enigo::Keyboard;\n","suggestion_applicability":"MaybeIncorrect","expansion":null}],"children":[],"rendered":null}],"rendered":"\u001b[1m\u001b[91merror[E0599]\u001b[0m\u001b[1m: no method named `key` found for struct `Enigo` in the current scope\u001b[0m\n \u001b[1m\u001b[94m--> \u001b[0msrc/input.rs:197:32\n \u001b[1m\u001b[94m|\u001b[0m\n\u001b[1m\u001b[94m197\u001b[0m \u001b[1m\u001b[94m|\u001b[0m let _ = self.enigo.key(Key::Shift, Direction::Press);\n \u001b[1m\u001b[94m|\u001b[0m \u001b[1m\u001b[91m^^^\u001b[0m \u001b[1m\u001b[91mmethod not found in `Enigo`\u001b[0m\n \u001b[1m\u001b[94m|\u001b[0m\n \u001b[1m\u001b[94m::: \u001b[0m/home/z/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/enigo-0.2.1/src/lib.rs:262:8\n \u001b[1m\u001b[94m|\u001b[0m\n\u001b[1m\u001b[94m262\u001b[0m \u001b[1m\u001b[94m|\u001b[0m fn key(&mut self, key: Key, direction: Direction) -> InputResult<()>;\n \u001b[1m\u001b[94m|\u001b[0m \u001b[1m\u001b[94m---\u001b[0m \u001b[1m\u001b[94mthe method is available for `Enigo` here\u001b[0m\n \u001b[1m\u001b[94m|\u001b[0m\n \u001b[1m\u001b[94m= \u001b[0m\u001b[1mhelp\u001b[0m: items from traits can only be used if the trait is in scope\n\u001b[1m\u001b[96mhelp\u001b[0m: trait `Keyboard` which provides `key` is implemented but not in scope; perhaps you want to import it\n \u001b[1m\u001b[94m|\u001b[0m\n\u001b[1m\u001b[94m 13\u001b[0m \u001b[92m+ use enigo::Keyboard;\u001b[0m\n \u001b[1m\u001b[94m|\u001b[0m\n\n"}
|
|
{"$message_type":"diagnostic","message":"no method named `key` found for struct `Enigo` in the current scope","code":{"code":"E0599","explanation":"This error occurs when a method is used on a type which doesn't implement it:\n\nErroneous code example:\n\n```compile_fail,E0599\nstruct Mouth;\n\nlet x = Mouth;\nx.chocolate(); // error: no method named `chocolate` found for type `Mouth`\n // in the current scope\n```\n\nIn this case, you need to implement the `chocolate` method to fix the error:\n\n```\nstruct Mouth;\n\nimpl Mouth {\n fn chocolate(&self) { // We implement the `chocolate` method here.\n println!(\"Hmmm! I love chocolate!\");\n }\n}\n\nlet x = Mouth;\nx.chocolate(); // ok!\n```\n"},"level":"error","spans":[{"file_name":"src/input.rs","byte_start":7694,"byte_end":7697,"line_start":200,"line_end":200,"column_start":32,"column_end":35,"is_primary":true,"text":[{"text":" let _ = self.enigo.key(Key::Alt, Direction::Press);","highlight_start":32,"highlight_end":35}],"label":"method not found in `Enigo`","suggested_replacement":null,"suggestion_applicability":null,"expansion":null},{"file_name":"/home/z/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/enigo-0.2.1/src/lib.rs","byte_start":10141,"byte_end":10144,"line_start":262,"line_end":262,"column_start":8,"column_end":11,"is_primary":false,"text":[{"text":" fn key(&mut self, key: Key, direction: Direction) -> InputResult<()>;","highlight_start":8,"highlight_end":11}],"label":"the method is available for `Enigo` here","suggested_replacement":null,"suggestion_applicability":null,"expansion":null}],"children":[{"message":"items from traits can only be used if the trait is in scope","code":null,"level":"help","spans":[],"children":[],"rendered":null},{"message":"trait `Keyboard` which provides `key` is implemented but not in scope; perhaps you want to import it","code":null,"level":"help","spans":[{"file_name":"src/input.rs","byte_start":531,"byte_end":531,"line_start":13,"line_end":13,"column_start":1,"column_end":1,"is_primary":true,"text":[{"text":"use anyhow::Result;","highlight_start":1,"highlight_end":1}],"label":null,"suggested_replacement":"use enigo::Keyboard;\n","suggestion_applicability":"MaybeIncorrect","expansion":null}],"children":[],"rendered":null}],"rendered":"\u001b[1m\u001b[91merror[E0599]\u001b[0m\u001b[1m: no method named `key` found for struct `Enigo` in the current scope\u001b[0m\n \u001b[1m\u001b[94m--> \u001b[0msrc/input.rs:200:32\n \u001b[1m\u001b[94m|\u001b[0m\n\u001b[1m\u001b[94m200\u001b[0m \u001b[1m\u001b[94m|\u001b[0m let _ = self.enigo.key(Key::Alt, Direction::Press);\n \u001b[1m\u001b[94m|\u001b[0m \u001b[1m\u001b[91m^^^\u001b[0m \u001b[1m\u001b[91mmethod not found in `Enigo`\u001b[0m\n \u001b[1m\u001b[94m|\u001b[0m\n \u001b[1m\u001b[94m::: \u001b[0m/home/z/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/enigo-0.2.1/src/lib.rs:262:8\n \u001b[1m\u001b[94m|\u001b[0m\n\u001b[1m\u001b[94m262\u001b[0m \u001b[1m\u001b[94m|\u001b[0m fn key(&mut self, key: Key, direction: Direction) -> InputResult<()>;\n \u001b[1m\u001b[94m|\u001b[0m \u001b[1m\u001b[94m---\u001b[0m \u001b[1m\u001b[94mthe method is available for `Enigo` here\u001b[0m\n \u001b[1m\u001b[94m|\u001b[0m\n \u001b[1m\u001b[94m= \u001b[0m\u001b[1mhelp\u001b[0m: items from traits can only be used if the trait is in scope\n\u001b[1m\u001b[96mhelp\u001b[0m: trait `Keyboard` which provides `key` is implemented but not in scope; perhaps you want to import it\n \u001b[1m\u001b[94m|\u001b[0m\n\u001b[1m\u001b[94m 13\u001b[0m \u001b[92m+ use enigo::Keyboard;\u001b[0m\n \u001b[1m\u001b[94m|\u001b[0m\n\n"}
|
|
{"$message_type":"diagnostic","message":"no method named `key` found for struct `Enigo` in the current scope","code":{"code":"E0599","explanation":"This error occurs when a method is used on a type which doesn't implement it:\n\nErroneous code example:\n\n```compile_fail,E0599\nstruct Mouth;\n\nlet x = Mouth;\nx.chocolate(); // error: no method named `chocolate` found for type `Mouth`\n // in the current scope\n```\n\nIn this case, you need to implement the `chocolate` method to fix the error:\n\n```\nstruct Mouth;\n\nimpl Mouth {\n fn chocolate(&self) { // We implement the `chocolate` method here.\n println!(\"Hmmm! I love chocolate!\");\n }\n}\n\nlet x = Mouth;\nx.chocolate(); // ok!\n```\n"},"level":"error","spans":[{"file_name":"src/input.rs","byte_start":7823,"byte_end":7826,"line_start":203,"line_end":203,"column_start":32,"column_end":35,"is_primary":true,"text":[{"text":" let _ = self.enigo.key(Key::Meta, Direction::Press);","highlight_start":32,"highlight_end":35}],"label":"method not found in `Enigo`","suggested_replacement":null,"suggestion_applicability":null,"expansion":null},{"file_name":"/home/z/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/enigo-0.2.1/src/lib.rs","byte_start":10141,"byte_end":10144,"line_start":262,"line_end":262,"column_start":8,"column_end":11,"is_primary":false,"text":[{"text":" fn key(&mut self, key: Key, direction: Direction) -> InputResult<()>;","highlight_start":8,"highlight_end":11}],"label":"the method is available for `Enigo` here","suggested_replacement":null,"suggestion_applicability":null,"expansion":null}],"children":[{"message":"items from traits can only be used if the trait is in scope","code":null,"level":"help","spans":[],"children":[],"rendered":null},{"message":"trait `Keyboard` which provides `key` is implemented but not in scope; perhaps you want to import it","code":null,"level":"help","spans":[{"file_name":"src/input.rs","byte_start":531,"byte_end":531,"line_start":13,"line_end":13,"column_start":1,"column_end":1,"is_primary":true,"text":[{"text":"use anyhow::Result;","highlight_start":1,"highlight_end":1}],"label":null,"suggested_replacement":"use enigo::Keyboard;\n","suggestion_applicability":"MaybeIncorrect","expansion":null}],"children":[],"rendered":null}],"rendered":"\u001b[1m\u001b[91merror[E0599]\u001b[0m\u001b[1m: no method named `key` found for struct `Enigo` in the current scope\u001b[0m\n \u001b[1m\u001b[94m--> \u001b[0msrc/input.rs:203:32\n \u001b[1m\u001b[94m|\u001b[0m\n\u001b[1m\u001b[94m203\u001b[0m \u001b[1m\u001b[94m|\u001b[0m let _ = self.enigo.key(Key::Meta, Direction::Press);\n \u001b[1m\u001b[94m|\u001b[0m \u001b[1m\u001b[91m^^^\u001b[0m \u001b[1m\u001b[91mmethod not found in `Enigo`\u001b[0m\n \u001b[1m\u001b[94m|\u001b[0m\n \u001b[1m\u001b[94m::: \u001b[0m/home/z/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/enigo-0.2.1/src/lib.rs:262:8\n \u001b[1m\u001b[94m|\u001b[0m\n\u001b[1m\u001b[94m262\u001b[0m \u001b[1m\u001b[94m|\u001b[0m fn key(&mut self, key: Key, direction: Direction) -> InputResult<()>;\n \u001b[1m\u001b[94m|\u001b[0m \u001b[1m\u001b[94m---\u001b[0m \u001b[1m\u001b[94mthe method is available for `Enigo` here\u001b[0m\n \u001b[1m\u001b[94m|\u001b[0m\n \u001b[1m\u001b[94m= \u001b[0m\u001b[1mhelp\u001b[0m: items from traits can only be used if the trait is in scope\n\u001b[1m\u001b[96mhelp\u001b[0m: trait `Keyboard` which provides `key` is implemented but not in scope; perhaps you want to import it\n \u001b[1m\u001b[94m|\u001b[0m\n\u001b[1m\u001b[94m 13\u001b[0m \u001b[92m+ use enigo::Keyboard;\u001b[0m\n \u001b[1m\u001b[94m|\u001b[0m\n\n"}
|
|
{"$message_type":"diagnostic","message":"no method named `key` found for struct `Enigo` in the current scope","code":{"code":"E0599","explanation":"This error occurs when a method is used on a type which doesn't implement it:\n\nErroneous code example:\n\n```compile_fail,E0599\nstruct Mouth;\n\nlet x = Mouth;\nx.chocolate(); // error: no method named `chocolate` found for type `Mouth`\n // in the current scope\n```\n\nIn this case, you need to implement the `chocolate` method to fix the error:\n\n```\nstruct Mouth;\n\nimpl Mouth {\n fn chocolate(&self) { // We implement the `chocolate` method here.\n println!(\"Hmmm! I love chocolate!\");\n }\n}\n\nlet x = Mouth;\nx.chocolate(); // ok!\n```\n"},"level":"error","spans":[{"file_name":"src/input.rs","byte_start":7876,"byte_end":7900,"line_start":206,"line_end":207,"column_start":9,"column_end":14,"is_primary":false,"text":[{"text":" self.enigo","highlight_start":9,"highlight_end":19},{"text":" .key(key, Direction::Press)","highlight_start":1,"highlight_end":14}],"label":"","suggested_replacement":null,"suggestion_applicability":null,"expansion":null},{"file_name":"src/input.rs","byte_start":7900,"byte_end":7903,"line_start":207,"line_end":207,"column_start":14,"column_end":17,"is_primary":true,"text":[{"text":" .key(key, Direction::Press)","highlight_start":14,"highlight_end":17}],"label":"method not found in `Enigo`","suggested_replacement":null,"suggestion_applicability":null,"expansion":null},{"file_name":"/home/z/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/enigo-0.2.1/src/lib.rs","byte_start":10141,"byte_end":10144,"line_start":262,"line_end":262,"column_start":8,"column_end":11,"is_primary":false,"text":[{"text":" fn key(&mut self, key: Key, direction: Direction) -> InputResult<()>;","highlight_start":8,"highlight_end":11}],"label":"the method is available for `Enigo` here","suggested_replacement":null,"suggestion_applicability":null,"expansion":null}],"children":[{"message":"items from traits can only be used if the trait is in scope","code":null,"level":"help","spans":[],"children":[],"rendered":null},{"message":"trait `Keyboard` which provides `key` is implemented but not in scope; perhaps you want to import it","code":null,"level":"help","spans":[{"file_name":"src/input.rs","byte_start":531,"byte_end":531,"line_start":13,"line_end":13,"column_start":1,"column_end":1,"is_primary":true,"text":[{"text":"use anyhow::Result;","highlight_start":1,"highlight_end":1}],"label":null,"suggested_replacement":"use enigo::Keyboard;\n","suggestion_applicability":"MaybeIncorrect","expansion":null}],"children":[],"rendered":null}],"rendered":"\u001b[1m\u001b[91merror[E0599]\u001b[0m\u001b[1m: no method named `key` found for struct `Enigo` in the current scope\u001b[0m\n \u001b[1m\u001b[94m--> \u001b[0msrc/input.rs:207:14\n \u001b[1m\u001b[94m|\u001b[0m\n\u001b[1m\u001b[94m206\u001b[0m \u001b[1m\u001b[94m|\u001b[0m \u001b[1m\u001b[94m/\u001b[0m self.enigo\n\u001b[1m\u001b[94m207\u001b[0m \u001b[1m\u001b[94m|\u001b[0m \u001b[1m\u001b[94m|\u001b[0m .key(key, Direction::Press)\n \u001b[1m\u001b[94m|\u001b[0m \u001b[1m\u001b[94m|\u001b[0m \u001b[1m\u001b[94m-\u001b[0m\u001b[1m\u001b[91m^^^\u001b[0m \u001b[1m\u001b[91mmethod not found in `Enigo`\u001b[0m\n \u001b[1m\u001b[94m|\u001b[0m \u001b[1m\u001b[94m|_____________|\u001b[0m\n \u001b[1m\u001b[94m|\u001b[0m\n \u001b[1m\u001b[94m|\u001b[0m\n \u001b[1m\u001b[94m::: \u001b[0m/home/z/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/enigo-0.2.1/src/lib.rs:262:8\n \u001b[1m\u001b[94m|\u001b[0m\n\u001b[1m\u001b[94m262\u001b[0m \u001b[1m\u001b[94m|\u001b[0m fn key(&mut self, key: Key, direction: Direction) -> InputResult<()>;\n \u001b[1m\u001b[94m|\u001b[0m \u001b[1m\u001b[94m---\u001b[0m \u001b[1m\u001b[94mthe method is available for `Enigo` here\u001b[0m\n \u001b[1m\u001b[94m|\u001b[0m\n \u001b[1m\u001b[94m= \u001b[0m\u001b[1mhelp\u001b[0m: items from traits can only be used if the trait is in scope\n\u001b[1m\u001b[96mhelp\u001b[0m: trait `Keyboard` which provides `key` is implemented but not in scope; perhaps you want to import it\n \u001b[1m\u001b[94m|\u001b[0m\n\u001b[1m\u001b[94m 13\u001b[0m \u001b[92m+ use enigo::Keyboard;\u001b[0m\n \u001b[1m\u001b[94m|\u001b[0m\n\n"}
|
|
{"$message_type":"diagnostic","message":"no method named `key` found for struct `Enigo` in the current scope","code":{"code":"E0599","explanation":"This error occurs when a method is used on a type which doesn't implement it:\n\nErroneous code example:\n\n```compile_fail,E0599\nstruct Mouth;\n\nlet x = Mouth;\nx.chocolate(); // error: no method named `chocolate` found for type `Mouth`\n // in the current scope\n```\n\nIn this case, you need to implement the `chocolate` method to fix the error:\n\n```\nstruct Mouth;\n\nimpl Mouth {\n fn chocolate(&self) { // We implement the `chocolate` method here.\n println!(\"Hmmm! I love chocolate!\");\n }\n}\n\nlet x = Mouth;\nx.chocolate(); // ok!\n```\n"},"level":"error","spans":[{"file_name":"src/input.rs","byte_start":8318,"byte_end":8321,"line_start":221,"line_end":221,"column_start":28,"column_end":31,"is_primary":true,"text":[{"text":" let _ = self.enigo.key(key, Direction::Release);","highlight_start":28,"highlight_end":31}],"label":"method not found in `Enigo`","suggested_replacement":null,"suggestion_applicability":null,"expansion":null},{"file_name":"/home/z/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/enigo-0.2.1/src/lib.rs","byte_start":10141,"byte_end":10144,"line_start":262,"line_end":262,"column_start":8,"column_end":11,"is_primary":false,"text":[{"text":" fn key(&mut self, key: Key, direction: Direction) -> InputResult<()>;","highlight_start":8,"highlight_end":11}],"label":"the method is available for `Enigo` here","suggested_replacement":null,"suggestion_applicability":null,"expansion":null}],"children":[{"message":"items from traits can only be used if the trait is in scope","code":null,"level":"help","spans":[],"children":[],"rendered":null},{"message":"trait `Keyboard` which provides `key` is implemented but not in scope; perhaps you want to import it","code":null,"level":"help","spans":[{"file_name":"src/input.rs","byte_start":531,"byte_end":531,"line_start":13,"line_end":13,"column_start":1,"column_end":1,"is_primary":true,"text":[{"text":"use anyhow::Result;","highlight_start":1,"highlight_end":1}],"label":null,"suggested_replacement":"use enigo::Keyboard;\n","suggestion_applicability":"MaybeIncorrect","expansion":null}],"children":[],"rendered":null}],"rendered":"\u001b[1m\u001b[91merror[E0599]\u001b[0m\u001b[1m: no method named `key` found for struct `Enigo` in the current scope\u001b[0m\n \u001b[1m\u001b[94m--> \u001b[0msrc/input.rs:221:28\n \u001b[1m\u001b[94m|\u001b[0m\n\u001b[1m\u001b[94m221\u001b[0m \u001b[1m\u001b[94m|\u001b[0m let _ = self.enigo.key(key, Direction::Release);\n \u001b[1m\u001b[94m|\u001b[0m \u001b[1m\u001b[91m^^^\u001b[0m \u001b[1m\u001b[91mmethod not found in `Enigo`\u001b[0m\n \u001b[1m\u001b[94m|\u001b[0m\n \u001b[1m\u001b[94m::: \u001b[0m/home/z/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/enigo-0.2.1/src/lib.rs:262:8\n \u001b[1m\u001b[94m|\u001b[0m\n\u001b[1m\u001b[94m262\u001b[0m \u001b[1m\u001b[94m|\u001b[0m fn key(&mut self, key: Key, direction: Direction) -> InputResult<()>;\n \u001b[1m\u001b[94m|\u001b[0m \u001b[1m\u001b[94m---\u001b[0m \u001b[1m\u001b[94mthe method is available for `Enigo` here\u001b[0m\n \u001b[1m\u001b[94m|\u001b[0m\n \u001b[1m\u001b[94m= \u001b[0m\u001b[1mhelp\u001b[0m: items from traits can only be used if the trait is in scope\n\u001b[1m\u001b[96mhelp\u001b[0m: trait `Keyboard` which provides `key` is implemented but not in scope; perhaps you want to import it\n \u001b[1m\u001b[94m|\u001b[0m\n\u001b[1m\u001b[94m 13\u001b[0m \u001b[92m+ use enigo::Keyboard;\u001b[0m\n \u001b[1m\u001b[94m|\u001b[0m\n\n"}
|
|
{"$message_type":"diagnostic","message":"no method named `key` found for struct `Enigo` in the current scope","code":{"code":"E0599","explanation":"This error occurs when a method is used on a type which doesn't implement it:\n\nErroneous code example:\n\n```compile_fail,E0599\nstruct Mouth;\n\nlet x = Mouth;\nx.chocolate(); // error: no method named `chocolate` found for type `Mouth`\n // in the current scope\n```\n\nIn this case, you need to implement the `chocolate` method to fix the error:\n\n```\nstruct Mouth;\n\nimpl Mouth {\n fn chocolate(&self) { // We implement the `chocolate` method here.\n println!(\"Hmmm! I love chocolate!\");\n }\n}\n\nlet x = Mouth;\nx.chocolate(); // ok!\n```\n"},"level":"error","spans":[{"file_name":"src/input.rs","byte_start":8482,"byte_end":8485,"line_start":225,"line_end":225,"column_start":32,"column_end":35,"is_primary":true,"text":[{"text":" let _ = self.enigo.key(Key::Meta, Direction::Release);","highlight_start":32,"highlight_end":35}],"label":"method not found in `Enigo`","suggested_replacement":null,"suggestion_applicability":null,"expansion":null},{"file_name":"/home/z/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/enigo-0.2.1/src/lib.rs","byte_start":10141,"byte_end":10144,"line_start":262,"line_end":262,"column_start":8,"column_end":11,"is_primary":false,"text":[{"text":" fn key(&mut self, key: Key, direction: Direction) -> InputResult<()>;","highlight_start":8,"highlight_end":11}],"label":"the method is available for `Enigo` here","suggested_replacement":null,"suggestion_applicability":null,"expansion":null}],"children":[{"message":"items from traits can only be used if the trait is in scope","code":null,"level":"help","spans":[],"children":[],"rendered":null},{"message":"trait `Keyboard` which provides `key` is implemented but not in scope; perhaps you want to import it","code":null,"level":"help","spans":[{"file_name":"src/input.rs","byte_start":531,"byte_end":531,"line_start":13,"line_end":13,"column_start":1,"column_end":1,"is_primary":true,"text":[{"text":"use anyhow::Result;","highlight_start":1,"highlight_end":1}],"label":null,"suggested_replacement":"use enigo::Keyboard;\n","suggestion_applicability":"MaybeIncorrect","expansion":null}],"children":[],"rendered":null}],"rendered":"\u001b[1m\u001b[91merror[E0599]\u001b[0m\u001b[1m: no method named `key` found for struct `Enigo` in the current scope\u001b[0m\n \u001b[1m\u001b[94m--> \u001b[0msrc/input.rs:225:32\n \u001b[1m\u001b[94m|\u001b[0m\n\u001b[1m\u001b[94m225\u001b[0m \u001b[1m\u001b[94m|\u001b[0m let _ = self.enigo.key(Key::Meta, Direction::Release);\n \u001b[1m\u001b[94m|\u001b[0m \u001b[1m\u001b[91m^^^\u001b[0m \u001b[1m\u001b[91mmethod not found in `Enigo`\u001b[0m\n \u001b[1m\u001b[94m|\u001b[0m\n \u001b[1m\u001b[94m::: \u001b[0m/home/z/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/enigo-0.2.1/src/lib.rs:262:8\n \u001b[1m\u001b[94m|\u001b[0m\n\u001b[1m\u001b[94m262\u001b[0m \u001b[1m\u001b[94m|\u001b[0m fn key(&mut self, key: Key, direction: Direction) -> InputResult<()>;\n \u001b[1m\u001b[94m|\u001b[0m \u001b[1m\u001b[94m---\u001b[0m \u001b[1m\u001b[94mthe method is available for `Enigo` here\u001b[0m\n \u001b[1m\u001b[94m|\u001b[0m\n \u001b[1m\u001b[94m= \u001b[0m\u001b[1mhelp\u001b[0m: items from traits can only be used if the trait is in scope\n\u001b[1m\u001b[96mhelp\u001b[0m: trait `Keyboard` which provides `key` is implemented but not in scope; perhaps you want to import it\n \u001b[1m\u001b[94m|\u001b[0m\n\u001b[1m\u001b[94m 13\u001b[0m \u001b[92m+ use enigo::Keyboard;\u001b[0m\n \u001b[1m\u001b[94m|\u001b[0m\n\n"}
|
|
{"$message_type":"diagnostic","message":"no method named `key` found for struct `Enigo` in the current scope","code":{"code":"E0599","explanation":"This error occurs when a method is used on a type which doesn't implement it:\n\nErroneous code example:\n\n```compile_fail,E0599\nstruct Mouth;\n\nlet x = Mouth;\nx.chocolate(); // error: no method named `chocolate` found for type `Mouth`\n // in the current scope\n```\n\nIn this case, you need to implement the `chocolate` method to fix the error:\n\n```\nstruct Mouth;\n\nimpl Mouth {\n fn chocolate(&self) { // We implement the `chocolate` method here.\n println!(\"Hmmm! I love chocolate!\");\n }\n}\n\nlet x = Mouth;\nx.chocolate(); // ok!\n```\n"},"level":"error","spans":[{"file_name":"src/input.rs","byte_start":8613,"byte_end":8616,"line_start":228,"line_end":228,"column_start":32,"column_end":35,"is_primary":true,"text":[{"text":" let _ = self.enigo.key(Key::Alt, Direction::Release);","highlight_start":32,"highlight_end":35}],"label":"method not found in `Enigo`","suggested_replacement":null,"suggestion_applicability":null,"expansion":null},{"file_name":"/home/z/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/enigo-0.2.1/src/lib.rs","byte_start":10141,"byte_end":10144,"line_start":262,"line_end":262,"column_start":8,"column_end":11,"is_primary":false,"text":[{"text":" fn key(&mut self, key: Key, direction: Direction) -> InputResult<()>;","highlight_start":8,"highlight_end":11}],"label":"the method is available for `Enigo` here","suggested_replacement":null,"suggestion_applicability":null,"expansion":null}],"children":[{"message":"items from traits can only be used if the trait is in scope","code":null,"level":"help","spans":[],"children":[],"rendered":null},{"message":"trait `Keyboard` which provides `key` is implemented but not in scope; perhaps you want to import it","code":null,"level":"help","spans":[{"file_name":"src/input.rs","byte_start":531,"byte_end":531,"line_start":13,"line_end":13,"column_start":1,"column_end":1,"is_primary":true,"text":[{"text":"use anyhow::Result;","highlight_start":1,"highlight_end":1}],"label":null,"suggested_replacement":"use enigo::Keyboard;\n","suggestion_applicability":"MaybeIncorrect","expansion":null}],"children":[],"rendered":null}],"rendered":"\u001b[1m\u001b[91merror[E0599]\u001b[0m\u001b[1m: no method named `key` found for struct `Enigo` in the current scope\u001b[0m\n \u001b[1m\u001b[94m--> \u001b[0msrc/input.rs:228:32\n \u001b[1m\u001b[94m|\u001b[0m\n\u001b[1m\u001b[94m228\u001b[0m \u001b[1m\u001b[94m|\u001b[0m let _ = self.enigo.key(Key::Alt, Direction::Release);\n \u001b[1m\u001b[94m|\u001b[0m \u001b[1m\u001b[91m^^^\u001b[0m \u001b[1m\u001b[91mmethod not found in `Enigo`\u001b[0m\n \u001b[1m\u001b[94m|\u001b[0m\n \u001b[1m\u001b[94m::: \u001b[0m/home/z/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/enigo-0.2.1/src/lib.rs:262:8\n \u001b[1m\u001b[94m|\u001b[0m\n\u001b[1m\u001b[94m262\u001b[0m \u001b[1m\u001b[94m|\u001b[0m fn key(&mut self, key: Key, direction: Direction) -> InputResult<()>;\n \u001b[1m\u001b[94m|\u001b[0m \u001b[1m\u001b[94m---\u001b[0m \u001b[1m\u001b[94mthe method is available for `Enigo` here\u001b[0m\n \u001b[1m\u001b[94m|\u001b[0m\n \u001b[1m\u001b[94m= \u001b[0m\u001b[1mhelp\u001b[0m: items from traits can only be used if the trait is in scope\n\u001b[1m\u001b[96mhelp\u001b[0m: trait `Keyboard` which provides `key` is implemented but not in scope; perhaps you want to import it\n \u001b[1m\u001b[94m|\u001b[0m\n\u001b[1m\u001b[94m 13\u001b[0m \u001b[92m+ use enigo::Keyboard;\u001b[0m\n \u001b[1m\u001b[94m|\u001b[0m\n\n"}
|
|
{"$message_type":"diagnostic","message":"no method named `key` found for struct `Enigo` in the current scope","code":{"code":"E0599","explanation":"This error occurs when a method is used on a type which doesn't implement it:\n\nErroneous code example:\n\n```compile_fail,E0599\nstruct Mouth;\n\nlet x = Mouth;\nx.chocolate(); // error: no method named `chocolate` found for type `Mouth`\n // in the current scope\n```\n\nIn this case, you need to implement the `chocolate` method to fix the error:\n\n```\nstruct Mouth;\n\nimpl Mouth {\n fn chocolate(&self) { // We implement the `chocolate` method here.\n println!(\"Hmmm! I love chocolate!\");\n }\n}\n\nlet x = Mouth;\nx.chocolate(); // ok!\n```\n"},"level":"error","spans":[{"file_name":"src/input.rs","byte_start":8745,"byte_end":8748,"line_start":231,"line_end":231,"column_start":32,"column_end":35,"is_primary":true,"text":[{"text":" let _ = self.enigo.key(Key::Shift, Direction::Release);","highlight_start":32,"highlight_end":35}],"label":"method not found in `Enigo`","suggested_replacement":null,"suggestion_applicability":null,"expansion":null},{"file_name":"/home/z/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/enigo-0.2.1/src/lib.rs","byte_start":10141,"byte_end":10144,"line_start":262,"line_end":262,"column_start":8,"column_end":11,"is_primary":false,"text":[{"text":" fn key(&mut self, key: Key, direction: Direction) -> InputResult<()>;","highlight_start":8,"highlight_end":11}],"label":"the method is available for `Enigo` here","suggested_replacement":null,"suggestion_applicability":null,"expansion":null}],"children":[{"message":"items from traits can only be used if the trait is in scope","code":null,"level":"help","spans":[],"children":[],"rendered":null},{"message":"trait `Keyboard` which provides `key` is implemented but not in scope; perhaps you want to import it","code":null,"level":"help","spans":[{"file_name":"src/input.rs","byte_start":531,"byte_end":531,"line_start":13,"line_end":13,"column_start":1,"column_end":1,"is_primary":true,"text":[{"text":"use anyhow::Result;","highlight_start":1,"highlight_end":1}],"label":null,"suggested_replacement":"use enigo::Keyboard;\n","suggestion_applicability":"MaybeIncorrect","expansion":null}],"children":[],"rendered":null}],"rendered":"\u001b[1m\u001b[91merror[E0599]\u001b[0m\u001b[1m: no method named `key` found for struct `Enigo` in the current scope\u001b[0m\n \u001b[1m\u001b[94m--> \u001b[0msrc/input.rs:231:32\n \u001b[1m\u001b[94m|\u001b[0m\n\u001b[1m\u001b[94m231\u001b[0m \u001b[1m\u001b[94m|\u001b[0m let _ = self.enigo.key(Key::Shift, Direction::Release);\n \u001b[1m\u001b[94m|\u001b[0m \u001b[1m\u001b[91m^^^\u001b[0m \u001b[1m\u001b[91mmethod not found in `Enigo`\u001b[0m\n \u001b[1m\u001b[94m|\u001b[0m\n \u001b[1m\u001b[94m::: \u001b[0m/home/z/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/enigo-0.2.1/src/lib.rs:262:8\n \u001b[1m\u001b[94m|\u001b[0m\n\u001b[1m\u001b[94m262\u001b[0m \u001b[1m\u001b[94m|\u001b[0m fn key(&mut self, key: Key, direction: Direction) -> InputResult<()>;\n \u001b[1m\u001b[94m|\u001b[0m \u001b[1m\u001b[94m---\u001b[0m \u001b[1m\u001b[94mthe method is available for `Enigo` here\u001b[0m\n \u001b[1m\u001b[94m|\u001b[0m\n \u001b[1m\u001b[94m= \u001b[0m\u001b[1mhelp\u001b[0m: items from traits can only be used if the trait is in scope\n\u001b[1m\u001b[96mhelp\u001b[0m: trait `Keyboard` which provides `key` is implemented but not in scope; perhaps you want to import it\n \u001b[1m\u001b[94m|\u001b[0m\n\u001b[1m\u001b[94m 13\u001b[0m \u001b[92m+ use enigo::Keyboard;\u001b[0m\n \u001b[1m\u001b[94m|\u001b[0m\n\n"}
|
|
{"$message_type":"diagnostic","message":"no method named `key` found for struct `Enigo` in the current scope","code":{"code":"E0599","explanation":"This error occurs when a method is used on a type which doesn't implement it:\n\nErroneous code example:\n\n```compile_fail,E0599\nstruct Mouth;\n\nlet x = Mouth;\nx.chocolate(); // error: no method named `chocolate` found for type `Mouth`\n // in the current scope\n```\n\nIn this case, you need to implement the `chocolate` method to fix the error:\n\n```\nstruct Mouth;\n\nimpl Mouth {\n fn chocolate(&self) { // We implement the `chocolate` method here.\n println!(\"Hmmm! I love chocolate!\");\n }\n}\n\nlet x = Mouth;\nx.chocolate(); // ok!\n```\n"},"level":"error","spans":[{"file_name":"src/input.rs","byte_start":8878,"byte_end":8881,"line_start":234,"line_end":234,"column_start":32,"column_end":35,"is_primary":true,"text":[{"text":" let _ = self.enigo.key(Key::Control, Direction::Release);","highlight_start":32,"highlight_end":35}],"label":"method not found in `Enigo`","suggested_replacement":null,"suggestion_applicability":null,"expansion":null},{"file_name":"/home/z/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/enigo-0.2.1/src/lib.rs","byte_start":10141,"byte_end":10144,"line_start":262,"line_end":262,"column_start":8,"column_end":11,"is_primary":false,"text":[{"text":" fn key(&mut self, key: Key, direction: Direction) -> InputResult<()>;","highlight_start":8,"highlight_end":11}],"label":"the method is available for `Enigo` here","suggested_replacement":null,"suggestion_applicability":null,"expansion":null}],"children":[{"message":"items from traits can only be used if the trait is in scope","code":null,"level":"help","spans":[],"children":[],"rendered":null},{"message":"trait `Keyboard` which provides `key` is implemented but not in scope; perhaps you want to import it","code":null,"level":"help","spans":[{"file_name":"src/input.rs","byte_start":531,"byte_end":531,"line_start":13,"line_end":13,"column_start":1,"column_end":1,"is_primary":true,"text":[{"text":"use anyhow::Result;","highlight_start":1,"highlight_end":1}],"label":null,"suggested_replacement":"use enigo::Keyboard;\n","suggestion_applicability":"MaybeIncorrect","expansion":null}],"children":[],"rendered":null}],"rendered":"\u001b[1m\u001b[91merror[E0599]\u001b[0m\u001b[1m: no method named `key` found for struct `Enigo` in the current scope\u001b[0m\n \u001b[1m\u001b[94m--> \u001b[0msrc/input.rs:234:32\n \u001b[1m\u001b[94m|\u001b[0m\n\u001b[1m\u001b[94m234\u001b[0m \u001b[1m\u001b[94m|\u001b[0m let _ = self.enigo.key(Key::Control, Direction::Release);\n \u001b[1m\u001b[94m|\u001b[0m \u001b[1m\u001b[91m^^^\u001b[0m \u001b[1m\u001b[91mmethod not found in `Enigo`\u001b[0m\n \u001b[1m\u001b[94m|\u001b[0m\n \u001b[1m\u001b[94m::: \u001b[0m/home/z/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/enigo-0.2.1/src/lib.rs:262:8\n \u001b[1m\u001b[94m|\u001b[0m\n\u001b[1m\u001b[94m262\u001b[0m \u001b[1m\u001b[94m|\u001b[0m fn key(&mut self, key: Key, direction: Direction) -> InputResult<()>;\n \u001b[1m\u001b[94m|\u001b[0m \u001b[1m\u001b[94m---\u001b[0m \u001b[1m\u001b[94mthe method is available for `Enigo` here\u001b[0m\n \u001b[1m\u001b[94m|\u001b[0m\n \u001b[1m\u001b[94m= \u001b[0m\u001b[1mhelp\u001b[0m: items from traits can only be used if the trait is in scope\n\u001b[1m\u001b[96mhelp\u001b[0m: trait `Keyboard` which provides `key` is implemented but not in scope; perhaps you want to import it\n \u001b[1m\u001b[94m|\u001b[0m\n\u001b[1m\u001b[94m 13\u001b[0m \u001b[92m+ use enigo::Keyboard;\u001b[0m\n \u001b[1m\u001b[94m|\u001b[0m\n\n"}
|
|
{"$message_type":"diagnostic","message":"no method named `key` found for struct `Enigo` in the current scope","code":{"code":"E0599","explanation":"This error occurs when a method is used on a type which doesn't implement it:\n\nErroneous code example:\n\n```compile_fail,E0599\nstruct Mouth;\n\nlet x = Mouth;\nx.chocolate(); // error: no method named `chocolate` found for type `Mouth`\n // in the current scope\n```\n\nIn this case, you need to implement the `chocolate` method to fix the error:\n\n```\nstruct Mouth;\n\nimpl Mouth {\n fn chocolate(&self) { // We implement the `chocolate` method here.\n println!(\"Hmmm! I love chocolate!\");\n }\n}\n\nlet x = Mouth;\nx.chocolate(); // ok!\n```\n"},"level":"error","spans":[{"file_name":"src/input.rs","byte_start":9215,"byte_end":9239,"line_start":247,"line_end":248,"column_start":9,"column_end":14,"is_primary":false,"text":[{"text":" self.enigo","highlight_start":9,"highlight_end":19},{"text":" .key(key, Direction::Click)","highlight_start":1,"highlight_end":14}],"label":"","suggested_replacement":null,"suggestion_applicability":null,"expansion":null},{"file_name":"src/input.rs","byte_start":9239,"byte_end":9242,"line_start":248,"line_end":248,"column_start":14,"column_end":17,"is_primary":true,"text":[{"text":" .key(key, Direction::Click)","highlight_start":14,"highlight_end":17}],"label":"method not found in `Enigo`","suggested_replacement":null,"suggestion_applicability":null,"expansion":null},{"file_name":"/home/z/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/enigo-0.2.1/src/lib.rs","byte_start":10141,"byte_end":10144,"line_start":262,"line_end":262,"column_start":8,"column_end":11,"is_primary":false,"text":[{"text":" fn key(&mut self, key: Key, direction: Direction) -> InputResult<()>;","highlight_start":8,"highlight_end":11}],"label":"the method is available for `Enigo` here","suggested_replacement":null,"suggestion_applicability":null,"expansion":null}],"children":[{"message":"items from traits can only be used if the trait is in scope","code":null,"level":"help","spans":[],"children":[],"rendered":null},{"message":"trait `Keyboard` which provides `key` is implemented but not in scope; perhaps you want to import it","code":null,"level":"help","spans":[{"file_name":"src/input.rs","byte_start":531,"byte_end":531,"line_start":13,"line_end":13,"column_start":1,"column_end":1,"is_primary":true,"text":[{"text":"use anyhow::Result;","highlight_start":1,"highlight_end":1}],"label":null,"suggested_replacement":"use enigo::Keyboard;\n","suggestion_applicability":"MaybeIncorrect","expansion":null}],"children":[],"rendered":null}],"rendered":"\u001b[1m\u001b[91merror[E0599]\u001b[0m\u001b[1m: no method named `key` found for struct `Enigo` in the current scope\u001b[0m\n \u001b[1m\u001b[94m--> \u001b[0msrc/input.rs:248:14\n \u001b[1m\u001b[94m|\u001b[0m\n\u001b[1m\u001b[94m247\u001b[0m \u001b[1m\u001b[94m|\u001b[0m \u001b[1m\u001b[94m/\u001b[0m self.enigo\n\u001b[1m\u001b[94m248\u001b[0m \u001b[1m\u001b[94m|\u001b[0m \u001b[1m\u001b[94m|\u001b[0m .key(key, Direction::Click)\n \u001b[1m\u001b[94m|\u001b[0m \u001b[1m\u001b[94m|\u001b[0m \u001b[1m\u001b[94m-\u001b[0m\u001b[1m\u001b[91m^^^\u001b[0m \u001b[1m\u001b[91mmethod not found in `Enigo`\u001b[0m\n \u001b[1m\u001b[94m|\u001b[0m \u001b[1m\u001b[94m|_____________|\u001b[0m\n \u001b[1m\u001b[94m|\u001b[0m\n \u001b[1m\u001b[94m|\u001b[0m\n \u001b[1m\u001b[94m::: \u001b[0m/home/z/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/enigo-0.2.1/src/lib.rs:262:8\n \u001b[1m\u001b[94m|\u001b[0m\n\u001b[1m\u001b[94m262\u001b[0m \u001b[1m\u001b[94m|\u001b[0m fn key(&mut self, key: Key, direction: Direction) -> InputResult<()>;\n \u001b[1m\u001b[94m|\u001b[0m \u001b[1m\u001b[94m---\u001b[0m \u001b[1m\u001b[94mthe method is available for `Enigo` here\u001b[0m\n \u001b[1m\u001b[94m|\u001b[0m\n \u001b[1m\u001b[94m= \u001b[0m\u001b[1mhelp\u001b[0m: items from traits can only be used if the trait is in scope\n\u001b[1m\u001b[96mhelp\u001b[0m: trait `Keyboard` which provides `key` is implemented but not in scope; perhaps you want to import it\n \u001b[1m\u001b[94m|\u001b[0m\n\u001b[1m\u001b[94m 13\u001b[0m \u001b[92m+ use enigo::Keyboard;\u001b[0m\n \u001b[1m\u001b[94m|\u001b[0m\n\n"}
|
|
{"$message_type":"diagnostic","message":"no method named `key` found for struct `Enigo` in the current scope","code":{"code":"E0599","explanation":"This error occurs when a method is used on a type which doesn't implement it:\n\nErroneous code example:\n\n```compile_fail,E0599\nstruct Mouth;\n\nlet x = Mouth;\nx.chocolate(); // error: no method named `chocolate` found for type `Mouth`\n // in the current scope\n```\n\nIn this case, you need to implement the `chocolate` method to fix the error:\n\n```\nstruct Mouth;\n\nimpl Mouth {\n fn chocolate(&self) { // We implement the `chocolate` method here.\n println!(\"Hmmm! I love chocolate!\");\n }\n}\n\nlet x = Mouth;\nx.chocolate(); // ok!\n```\n"},"level":"error","spans":[{"file_name":"src/input.rs","byte_start":9756,"byte_end":9759,"line_start":264,"line_end":264,"column_start":40,"column_end":43,"is_primary":true,"text":[{"text":" if let Err(e) = self.enigo.key(Key::Unicode(ch), Direction::Click) {","highlight_start":40,"highlight_end":43}],"label":"method not found in `Enigo`","suggested_replacement":null,"suggestion_applicability":null,"expansion":null},{"file_name":"/home/z/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/enigo-0.2.1/src/lib.rs","byte_start":10141,"byte_end":10144,"line_start":262,"line_end":262,"column_start":8,"column_end":11,"is_primary":false,"text":[{"text":" fn key(&mut self, key: Key, direction: Direction) -> InputResult<()>;","highlight_start":8,"highlight_end":11}],"label":"the method is available for `Enigo` here","suggested_replacement":null,"suggestion_applicability":null,"expansion":null}],"children":[{"message":"items from traits can only be used if the trait is in scope","code":null,"level":"help","spans":[],"children":[],"rendered":null},{"message":"trait `Keyboard` which provides `key` is implemented but not in scope; perhaps you want to import it","code":null,"level":"help","spans":[{"file_name":"src/input.rs","byte_start":531,"byte_end":531,"line_start":13,"line_end":13,"column_start":1,"column_end":1,"is_primary":true,"text":[{"text":"use anyhow::Result;","highlight_start":1,"highlight_end":1}],"label":null,"suggested_replacement":"use enigo::Keyboard;\n","suggestion_applicability":"MaybeIncorrect","expansion":null}],"children":[],"rendered":null}],"rendered":"\u001b[1m\u001b[91merror[E0599]\u001b[0m\u001b[1m: no method named `key` found for struct `Enigo` in the current scope\u001b[0m\n \u001b[1m\u001b[94m--> \u001b[0msrc/input.rs:264:40\n \u001b[1m\u001b[94m|\u001b[0m\n\u001b[1m\u001b[94m264\u001b[0m \u001b[1m\u001b[94m|\u001b[0m if let Err(e) = self.enigo.key(Key::Unicode(ch), Direction::Click) {\n \u001b[1m\u001b[94m|\u001b[0m \u001b[1m\u001b[91m^^^\u001b[0m \u001b[1m\u001b[91mmethod not found in `Enigo`\u001b[0m\n \u001b[1m\u001b[94m|\u001b[0m\n \u001b[1m\u001b[94m::: \u001b[0m/home/z/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/enigo-0.2.1/src/lib.rs:262:8\n \u001b[1m\u001b[94m|\u001b[0m\n\u001b[1m\u001b[94m262\u001b[0m \u001b[1m\u001b[94m|\u001b[0m fn key(&mut self, key: Key, direction: Direction) -> InputResult<()>;\n \u001b[1m\u001b[94m|\u001b[0m \u001b[1m\u001b[94m---\u001b[0m \u001b[1m\u001b[94mthe method is available for `Enigo` here\u001b[0m\n \u001b[1m\u001b[94m|\u001b[0m\n \u001b[1m\u001b[94m= \u001b[0m\u001b[1mhelp\u001b[0m: items from traits can only be used if the trait is in scope\n\u001b[1m\u001b[96mhelp\u001b[0m: trait `Keyboard` which provides `key` is implemented but not in scope; perhaps you want to import it\n \u001b[1m\u001b[94m|\u001b[0m\n\u001b[1m\u001b[94m 13\u001b[0m \u001b[92m+ use enigo::Keyboard;\u001b[0m\n \u001b[1m\u001b[94m|\u001b[0m\n\n"}
|
|
{"$message_type":"diagnostic","message":"no variant or associated item named `Up` found for enum `enigo::Key` in the current scope","code":{"code":"E0599","explanation":"This error occurs when a method is used on a type which doesn't implement it:\n\nErroneous code example:\n\n```compile_fail,E0599\nstruct Mouth;\n\nlet x = Mouth;\nx.chocolate(); // error: no method named `chocolate` found for type `Mouth`\n // in the current scope\n```\n\nIn this case, you need to implement the `chocolate` method to fix the error:\n\n```\nstruct Mouth;\n\nimpl Mouth {\n fn chocolate(&self) { // We implement the `chocolate` method here.\n println!(\"Hmmm! I love chocolate!\");\n }\n}\n\nlet x = Mouth;\nx.chocolate(); // ok!\n```\n"},"level":"error","spans":[{"file_name":"src/input.rs","byte_start":12055,"byte_end":12057,"line_start":320,"line_end":320,"column_start":27,"column_end":29,"is_primary":true,"text":[{"text":" \"ArrowUp\" => Key::Up,","highlight_start":27,"highlight_end":29}],"label":"variant or associated item not found in `enigo::Key`","suggested_replacement":null,"suggestion_applicability":null,"expansion":null}],"children":[],"rendered":"\u001b[1m\u001b[91merror[E0599]\u001b[0m\u001b[1m: no variant or associated item named `Up` found for enum `enigo::Key` in the current scope\u001b[0m\n \u001b[1m\u001b[94m--> \u001b[0msrc/input.rs:320:27\n \u001b[1m\u001b[94m|\u001b[0m\n\u001b[1m\u001b[94m320\u001b[0m \u001b[1m\u001b[94m|\u001b[0m \"ArrowUp\" => Key::Up,\n \u001b[1m\u001b[94m|\u001b[0m \u001b[1m\u001b[91m^^\u001b[0m \u001b[1m\u001b[91mvariant or associated item not found in `enigo::Key`\u001b[0m\n\n"}
|
|
{"$message_type":"diagnostic","message":"no variant or associated item named `Down` found for enum `enigo::Key` in the current scope","code":{"code":"E0599","explanation":"This error occurs when a method is used on a type which doesn't implement it:\n\nErroneous code example:\n\n```compile_fail,E0599\nstruct Mouth;\n\nlet x = Mouth;\nx.chocolate(); // error: no method named `chocolate` found for type `Mouth`\n // in the current scope\n```\n\nIn this case, you need to implement the `chocolate` method to fix the error:\n\n```\nstruct Mouth;\n\nimpl Mouth {\n fn chocolate(&self) { // We implement the `chocolate` method here.\n println!(\"Hmmm! I love chocolate!\");\n }\n}\n\nlet x = Mouth;\nx.chocolate(); // ok!\n```\n"},"level":"error","spans":[{"file_name":"src/input.rs","byte_start":12087,"byte_end":12091,"line_start":321,"line_end":321,"column_start":29,"column_end":33,"is_primary":true,"text":[{"text":" \"ArrowDown\" => Key::Down,","highlight_start":29,"highlight_end":33}],"label":"variant or associated item not found in `enigo::Key`","suggested_replacement":null,"suggestion_applicability":null,"expansion":null}],"children":[],"rendered":"\u001b[1m\u001b[91merror[E0599]\u001b[0m\u001b[1m: no variant or associated item named `Down` found for enum `enigo::Key` in the current scope\u001b[0m\n \u001b[1m\u001b[94m--> \u001b[0msrc/input.rs:321:29\n \u001b[1m\u001b[94m|\u001b[0m\n\u001b[1m\u001b[94m321\u001b[0m \u001b[1m\u001b[94m|\u001b[0m \"ArrowDown\" => Key::Down,\n \u001b[1m\u001b[94m|\u001b[0m \u001b[1m\u001b[91m^^^^\u001b[0m \u001b[1m\u001b[91mvariant or associated item not found in `enigo::Key`\u001b[0m\n\n"}
|
|
{"$message_type":"diagnostic","message":"no variant or associated item named `Left` found for enum `enigo::Key` in the current scope","code":{"code":"E0599","explanation":"This error occurs when a method is used on a type which doesn't implement it:\n\nErroneous code example:\n\n```compile_fail,E0599\nstruct Mouth;\n\nlet x = Mouth;\nx.chocolate(); // error: no method named `chocolate` found for type `Mouth`\n // in the current scope\n```\n\nIn this case, you need to implement the `chocolate` method to fix the error:\n\n```\nstruct Mouth;\n\nimpl Mouth {\n fn chocolate(&self) { // We implement the `chocolate` method here.\n println!(\"Hmmm! I love chocolate!\");\n }\n}\n\nlet x = Mouth;\nx.chocolate(); // ok!\n```\n"},"level":"error","spans":[{"file_name":"src/input.rs","byte_start":12121,"byte_end":12125,"line_start":322,"line_end":322,"column_start":29,"column_end":33,"is_primary":true,"text":[{"text":" \"ArrowLeft\" => Key::Left,","highlight_start":29,"highlight_end":33}],"label":"variant or associated item not found in `enigo::Key`","suggested_replacement":null,"suggestion_applicability":null,"expansion":null}],"children":[],"rendered":"\u001b[1m\u001b[91merror[E0599]\u001b[0m\u001b[1m: no variant or associated item named `Left` found for enum `enigo::Key` in the current scope\u001b[0m\n \u001b[1m\u001b[94m--> \u001b[0msrc/input.rs:322:29\n \u001b[1m\u001b[94m|\u001b[0m\n\u001b[1m\u001b[94m322\u001b[0m \u001b[1m\u001b[94m|\u001b[0m \"ArrowLeft\" => Key::Left,\n \u001b[1m\u001b[94m|\u001b[0m \u001b[1m\u001b[91m^^^^\u001b[0m \u001b[1m\u001b[91mvariant or associated item not found in `enigo::Key`\u001b[0m\n\n"}
|
|
{"$message_type":"diagnostic","message":"no variant or associated item named `Right` found for enum `enigo::Key` in the current scope","code":{"code":"E0599","explanation":"This error occurs when a method is used on a type which doesn't implement it:\n\nErroneous code example:\n\n```compile_fail,E0599\nstruct Mouth;\n\nlet x = Mouth;\nx.chocolate(); // error: no method named `chocolate` found for type `Mouth`\n // in the current scope\n```\n\nIn this case, you need to implement the `chocolate` method to fix the error:\n\n```\nstruct Mouth;\n\nimpl Mouth {\n fn chocolate(&self) { // We implement the `chocolate` method here.\n println!(\"Hmmm! I love chocolate!\");\n }\n}\n\nlet x = Mouth;\nx.chocolate(); // ok!\n```\n"},"level":"error","spans":[{"file_name":"src/input.rs","byte_start":12156,"byte_end":12161,"line_start":323,"line_end":323,"column_start":30,"column_end":35,"is_primary":true,"text":[{"text":" \"ArrowRight\" => Key::Right,","highlight_start":30,"highlight_end":35}],"label":"variant or associated item not found in `enigo::Key`","suggested_replacement":null,"suggestion_applicability":null,"expansion":null}],"children":[],"rendered":"\u001b[1m\u001b[91merror[E0599]\u001b[0m\u001b[1m: no variant or associated item named `Right` found for enum `enigo::Key` in the current scope\u001b[0m\n \u001b[1m\u001b[94m--> \u001b[0msrc/input.rs:323:30\n \u001b[1m\u001b[94m|\u001b[0m\n\u001b[1m\u001b[94m323\u001b[0m \u001b[1m\u001b[94m|\u001b[0m \"ArrowRight\" => Key::Right,\n \u001b[1m\u001b[94m|\u001b[0m \u001b[1m\u001b[91m^^^^^\u001b[0m \u001b[1m\u001b[91mvariant or associated item not found in `enigo::Key`\u001b[0m\n\n"}
|
|
{"$message_type":"diagnostic","message":"no variant or associated item named `NumLock` found for enum `enigo::Key` in the current scope","code":{"code":"E0599","explanation":"This error occurs when a method is used on a type which doesn't implement it:\n\nErroneous code example:\n\n```compile_fail,E0599\nstruct Mouth;\n\nlet x = Mouth;\nx.chocolate(); // error: no method named `chocolate` found for type `Mouth`\n // in the current scope\n```\n\nIn this case, you need to implement the `chocolate` method to fix the error:\n\n```\nstruct Mouth;\n\nimpl Mouth {\n fn chocolate(&self) { // We implement the `chocolate` method here.\n println!(\"Hmmm! I love chocolate!\");\n }\n}\n\nlet x = Mouth;\nx.chocolate(); // ok!\n```\n"},"level":"error","spans":[{"file_name":"src/input.rs","byte_start":13106,"byte_end":13113,"line_start":349,"line_end":349,"column_start":27,"column_end":34,"is_primary":true,"text":[{"text":" \"NumLock\" => Key::NumLock,","highlight_start":27,"highlight_end":34}],"label":"variant or associated item not found in `enigo::Key`","suggested_replacement":null,"suggestion_applicability":null,"expansion":null}],"children":[{"message":"there is a variant with a similar name","code":null,"level":"help","spans":[{"file_name":"src/input.rs","byte_start":13106,"byte_end":13113,"line_start":349,"line_end":349,"column_start":27,"column_end":34,"is_primary":true,"text":[{"text":" \"NumLock\" => Key::NumLock,","highlight_start":27,"highlight_end":34}],"label":null,"suggested_replacement":"Numlock","suggestion_applicability":"HasPlaceholders","expansion":null}],"children":[],"rendered":null}],"rendered":"\u001b[1m\u001b[91merror[E0599]\u001b[0m\u001b[1m: no variant or associated item named `NumLock` found for enum `enigo::Key` in the current scope\u001b[0m\n \u001b[1m\u001b[94m--> \u001b[0msrc/input.rs:349:27\n \u001b[1m\u001b[94m|\u001b[0m\n\u001b[1m\u001b[94m349\u001b[0m \u001b[1m\u001b[94m|\u001b[0m \"NumLock\" => Key::NumLock,\n \u001b[1m\u001b[94m|\u001b[0m \u001b[1m\u001b[91m^^^^^^^\u001b[0m \u001b[1m\u001b[91mvariant or associated item not found in `enigo::Key`\u001b[0m\n \u001b[1m\u001b[94m|\u001b[0m\n\u001b[1m\u001b[96mhelp\u001b[0m: there is a variant with a similar name\n \u001b[1m\u001b[94m|\u001b[0m\n\u001b[1m\u001b[94m349\u001b[0m \u001b[91m- \u001b[0m \"NumLock\" => Key::\u001b[91mNumLock\u001b[0m,\n\u001b[1m\u001b[94m349\u001b[0m \u001b[92m+ \u001b[0m \"NumLock\" => Key::\u001b[92mNumlock\u001b[0m,\n \u001b[1m\u001b[94m|\u001b[0m\n\n"}
|
|
{"$message_type":"diagnostic","message":"no variant or associated item named `PrintScreen` found for enum `enigo::Key` in the current scope","code":{"code":"E0599","explanation":"This error occurs when a method is used on a type which doesn't implement it:\n\nErroneous code example:\n\n```compile_fail,E0599\nstruct Mouth;\n\nlet x = Mouth;\nx.chocolate(); // error: no method named `chocolate` found for type `Mouth`\n // in the current scope\n```\n\nIn this case, you need to implement the `chocolate` method to fix the error:\n\n```\nstruct Mouth;\n\nimpl Mouth {\n fn chocolate(&self) { // We implement the `chocolate` method here.\n println!(\"Hmmm! I love chocolate!\");\n }\n}\n\nlet x = Mouth;\nx.chocolate(); // ok!\n```\n"},"level":"error","spans":[{"file_name":"src/input.rs","byte_start":13523,"byte_end":13534,"line_start":359,"line_end":359,"column_start":31,"column_end":42,"is_primary":true,"text":[{"text":" \"PrintScreen\" => Key::PrintScreen,","highlight_start":31,"highlight_end":42}],"label":"variant or associated item not found in `enigo::Key`","suggested_replacement":null,"suggestion_applicability":null,"expansion":null}],"children":[],"rendered":"\u001b[1m\u001b[91merror[E0599]\u001b[0m\u001b[1m: no variant or associated item named `PrintScreen` found for enum `enigo::Key` in the current scope\u001b[0m\n \u001b[1m\u001b[94m--> \u001b[0msrc/input.rs:359:31\n \u001b[1m\u001b[94m|\u001b[0m\n\u001b[1m\u001b[94m359\u001b[0m \u001b[1m\u001b[94m|\u001b[0m \"PrintScreen\" => Key::PrintScreen,\n \u001b[1m\u001b[94m|\u001b[0m \u001b[1m\u001b[91m^^^^^^^^^^^\u001b[0m \u001b[1m\u001b[91mvariant or associated item not found in `enigo::Key`\u001b[0m\n\n"}
|
|
{"$message_type":"diagnostic","message":"no variant or associated item named `Numpad0` found for enum `enigo::Key` in the current scope","code":{"code":"E0599","explanation":"This error occurs when a method is used on a type which doesn't implement it:\n\nErroneous code example:\n\n```compile_fail,E0599\nstruct Mouth;\n\nlet x = Mouth;\nx.chocolate(); // error: no method named `chocolate` found for type `Mouth`\n // in the current scope\n```\n\nIn this case, you need to implement the `chocolate` method to fix the error:\n\n```\nstruct Mouth;\n\nimpl Mouth {\n fn chocolate(&self) { // We implement the `chocolate` method here.\n println!(\"Hmmm! I love chocolate!\");\n }\n}\n\nlet x = Mouth;\nx.chocolate(); // ok!\n```\n"},"level":"error","spans":[{"file_name":"src/input.rs","byte_start":13782,"byte_end":13789,"line_start":363,"line_end":363,"column_start":27,"column_end":34,"is_primary":true,"text":[{"text":" \"Numpad0\" => Key::Numpad0,","highlight_start":27,"highlight_end":34}],"label":"variant or associated item not found in `enigo::Key`","suggested_replacement":null,"suggestion_applicability":null,"expansion":null}],"children":[],"rendered":"\u001b[1m\u001b[91merror[E0599]\u001b[0m\u001b[1m: no variant or associated item named `Numpad0` found for enum `enigo::Key` in the current scope\u001b[0m\n \u001b[1m\u001b[94m--> \u001b[0msrc/input.rs:363:27\n \u001b[1m\u001b[94m|\u001b[0m\n\u001b[1m\u001b[94m363\u001b[0m \u001b[1m\u001b[94m|\u001b[0m \"Numpad0\" => Key::Numpad0,\n \u001b[1m\u001b[94m|\u001b[0m \u001b[1m\u001b[91m^^^^^^^\u001b[0m \u001b[1m\u001b[91mvariant or associated item not found in `enigo::Key`\u001b[0m\n\n"}
|
|
{"$message_type":"diagnostic","message":"no variant or associated item named `Numpad1` found for enum `enigo::Key` in the current scope","code":{"code":"E0599","explanation":"This error occurs when a method is used on a type which doesn't implement it:\n\nErroneous code example:\n\n```compile_fail,E0599\nstruct Mouth;\n\nlet x = Mouth;\nx.chocolate(); // error: no method named `chocolate` found for type `Mouth`\n // in the current scope\n```\n\nIn this case, you need to implement the `chocolate` method to fix the error:\n\n```\nstruct Mouth;\n\nimpl Mouth {\n fn chocolate(&self) { // We implement the `chocolate` method here.\n println!(\"Hmmm! I love chocolate!\");\n }\n}\n\nlet x = Mouth;\nx.chocolate(); // ok!\n```\n"},"level":"error","spans":[{"file_name":"src/input.rs","byte_start":13817,"byte_end":13824,"line_start":364,"line_end":364,"column_start":27,"column_end":34,"is_primary":true,"text":[{"text":" \"Numpad1\" => Key::Numpad1,","highlight_start":27,"highlight_end":34}],"label":"variant or associated item not found in `enigo::Key`","suggested_replacement":null,"suggestion_applicability":null,"expansion":null}],"children":[],"rendered":"\u001b[1m\u001b[91merror[E0599]\u001b[0m\u001b[1m: no variant or associated item named `Numpad1` found for enum `enigo::Key` in the current scope\u001b[0m\n \u001b[1m\u001b[94m--> \u001b[0msrc/input.rs:364:27\n \u001b[1m\u001b[94m|\u001b[0m\n\u001b[1m\u001b[94m364\u001b[0m \u001b[1m\u001b[94m|\u001b[0m \"Numpad1\" => Key::Numpad1,\n \u001b[1m\u001b[94m|\u001b[0m \u001b[1m\u001b[91m^^^^^^^\u001b[0m \u001b[1m\u001b[91mvariant or associated item not found in `enigo::Key`\u001b[0m\n\n"}
|
|
{"$message_type":"diagnostic","message":"no variant or associated item named `Numpad2` found for enum `enigo::Key` in the current scope","code":{"code":"E0599","explanation":"This error occurs when a method is used on a type which doesn't implement it:\n\nErroneous code example:\n\n```compile_fail,E0599\nstruct Mouth;\n\nlet x = Mouth;\nx.chocolate(); // error: no method named `chocolate` found for type `Mouth`\n // in the current scope\n```\n\nIn this case, you need to implement the `chocolate` method to fix the error:\n\n```\nstruct Mouth;\n\nimpl Mouth {\n fn chocolate(&self) { // We implement the `chocolate` method here.\n println!(\"Hmmm! I love chocolate!\");\n }\n}\n\nlet x = Mouth;\nx.chocolate(); // ok!\n```\n"},"level":"error","spans":[{"file_name":"src/input.rs","byte_start":13852,"byte_end":13859,"line_start":365,"line_end":365,"column_start":27,"column_end":34,"is_primary":true,"text":[{"text":" \"Numpad2\" => Key::Numpad2,","highlight_start":27,"highlight_end":34}],"label":"variant or associated item not found in `enigo::Key`","suggested_replacement":null,"suggestion_applicability":null,"expansion":null}],"children":[],"rendered":"\u001b[1m\u001b[91merror[E0599]\u001b[0m\u001b[1m: no variant or associated item named `Numpad2` found for enum `enigo::Key` in the current scope\u001b[0m\n \u001b[1m\u001b[94m--> \u001b[0msrc/input.rs:365:27\n \u001b[1m\u001b[94m|\u001b[0m\n\u001b[1m\u001b[94m365\u001b[0m \u001b[1m\u001b[94m|\u001b[0m \"Numpad2\" => Key::Numpad2,\n \u001b[1m\u001b[94m|\u001b[0m \u001b[1m\u001b[91m^^^^^^^\u001b[0m \u001b[1m\u001b[91mvariant or associated item not found in `enigo::Key`\u001b[0m\n\n"}
|
|
{"$message_type":"diagnostic","message":"no variant or associated item named `Numpad3` found for enum `enigo::Key` in the current scope","code":{"code":"E0599","explanation":"This error occurs when a method is used on a type which doesn't implement it:\n\nErroneous code example:\n\n```compile_fail,E0599\nstruct Mouth;\n\nlet x = Mouth;\nx.chocolate(); // error: no method named `chocolate` found for type `Mouth`\n // in the current scope\n```\n\nIn this case, you need to implement the `chocolate` method to fix the error:\n\n```\nstruct Mouth;\n\nimpl Mouth {\n fn chocolate(&self) { // We implement the `chocolate` method here.\n println!(\"Hmmm! I love chocolate!\");\n }\n}\n\nlet x = Mouth;\nx.chocolate(); // ok!\n```\n"},"level":"error","spans":[{"file_name":"src/input.rs","byte_start":13887,"byte_end":13894,"line_start":366,"line_end":366,"column_start":27,"column_end":34,"is_primary":true,"text":[{"text":" \"Numpad3\" => Key::Numpad3,","highlight_start":27,"highlight_end":34}],"label":"variant or associated item not found in `enigo::Key`","suggested_replacement":null,"suggestion_applicability":null,"expansion":null}],"children":[],"rendered":"\u001b[1m\u001b[91merror[E0599]\u001b[0m\u001b[1m: no variant or associated item named `Numpad3` found for enum `enigo::Key` in the current scope\u001b[0m\n \u001b[1m\u001b[94m--> \u001b[0msrc/input.rs:366:27\n \u001b[1m\u001b[94m|\u001b[0m\n\u001b[1m\u001b[94m366\u001b[0m \u001b[1m\u001b[94m|\u001b[0m \"Numpad3\" => Key::Numpad3,\n \u001b[1m\u001b[94m|\u001b[0m \u001b[1m\u001b[91m^^^^^^^\u001b[0m \u001b[1m\u001b[91mvariant or associated item not found in `enigo::Key`\u001b[0m\n\n"}
|
|
{"$message_type":"diagnostic","message":"no variant or associated item named `Numpad4` found for enum `enigo::Key` in the current scope","code":{"code":"E0599","explanation":"This error occurs when a method is used on a type which doesn't implement it:\n\nErroneous code example:\n\n```compile_fail,E0599\nstruct Mouth;\n\nlet x = Mouth;\nx.chocolate(); // error: no method named `chocolate` found for type `Mouth`\n // in the current scope\n```\n\nIn this case, you need to implement the `chocolate` method to fix the error:\n\n```\nstruct Mouth;\n\nimpl Mouth {\n fn chocolate(&self) { // We implement the `chocolate` method here.\n println!(\"Hmmm! I love chocolate!\");\n }\n}\n\nlet x = Mouth;\nx.chocolate(); // ok!\n```\n"},"level":"error","spans":[{"file_name":"src/input.rs","byte_start":13922,"byte_end":13929,"line_start":367,"line_end":367,"column_start":27,"column_end":34,"is_primary":true,"text":[{"text":" \"Numpad4\" => Key::Numpad4,","highlight_start":27,"highlight_end":34}],"label":"variant or associated item not found in `enigo::Key`","suggested_replacement":null,"suggestion_applicability":null,"expansion":null}],"children":[],"rendered":"\u001b[1m\u001b[91merror[E0599]\u001b[0m\u001b[1m: no variant or associated item named `Numpad4` found for enum `enigo::Key` in the current scope\u001b[0m\n \u001b[1m\u001b[94m--> \u001b[0msrc/input.rs:367:27\n \u001b[1m\u001b[94m|\u001b[0m\n\u001b[1m\u001b[94m367\u001b[0m \u001b[1m\u001b[94m|\u001b[0m \"Numpad4\" => Key::Numpad4,\n \u001b[1m\u001b[94m|\u001b[0m \u001b[1m\u001b[91m^^^^^^^\u001b[0m \u001b[1m\u001b[91mvariant or associated item not found in `enigo::Key`\u001b[0m\n\n"}
|
|
{"$message_type":"diagnostic","message":"no variant or associated item named `Numpad5` found for enum `enigo::Key` in the current scope","code":{"code":"E0599","explanation":"This error occurs when a method is used on a type which doesn't implement it:\n\nErroneous code example:\n\n```compile_fail,E0599\nstruct Mouth;\n\nlet x = Mouth;\nx.chocolate(); // error: no method named `chocolate` found for type `Mouth`\n // in the current scope\n```\n\nIn this case, you need to implement the `chocolate` method to fix the error:\n\n```\nstruct Mouth;\n\nimpl Mouth {\n fn chocolate(&self) { // We implement the `chocolate` method here.\n println!(\"Hmmm! I love chocolate!\");\n }\n}\n\nlet x = Mouth;\nx.chocolate(); // ok!\n```\n"},"level":"error","spans":[{"file_name":"src/input.rs","byte_start":13957,"byte_end":13964,"line_start":368,"line_end":368,"column_start":27,"column_end":34,"is_primary":true,"text":[{"text":" \"Numpad5\" => Key::Numpad5,","highlight_start":27,"highlight_end":34}],"label":"variant or associated item not found in `enigo::Key`","suggested_replacement":null,"suggestion_applicability":null,"expansion":null}],"children":[],"rendered":"\u001b[1m\u001b[91merror[E0599]\u001b[0m\u001b[1m: no variant or associated item named `Numpad5` found for enum `enigo::Key` in the current scope\u001b[0m\n \u001b[1m\u001b[94m--> \u001b[0msrc/input.rs:368:27\n \u001b[1m\u001b[94m|\u001b[0m\n\u001b[1m\u001b[94m368\u001b[0m \u001b[1m\u001b[94m|\u001b[0m \"Numpad5\" => Key::Numpad5,\n \u001b[1m\u001b[94m|\u001b[0m \u001b[1m\u001b[91m^^^^^^^\u001b[0m \u001b[1m\u001b[91mvariant or associated item not found in `enigo::Key`\u001b[0m\n\n"}
|
|
{"$message_type":"diagnostic","message":"no variant or associated item named `Numpad6` found for enum `enigo::Key` in the current scope","code":{"code":"E0599","explanation":"This error occurs when a method is used on a type which doesn't implement it:\n\nErroneous code example:\n\n```compile_fail,E0599\nstruct Mouth;\n\nlet x = Mouth;\nx.chocolate(); // error: no method named `chocolate` found for type `Mouth`\n // in the current scope\n```\n\nIn this case, you need to implement the `chocolate` method to fix the error:\n\n```\nstruct Mouth;\n\nimpl Mouth {\n fn chocolate(&self) { // We implement the `chocolate` method here.\n println!(\"Hmmm! I love chocolate!\");\n }\n}\n\nlet x = Mouth;\nx.chocolate(); // ok!\n```\n"},"level":"error","spans":[{"file_name":"src/input.rs","byte_start":13992,"byte_end":13999,"line_start":369,"line_end":369,"column_start":27,"column_end":34,"is_primary":true,"text":[{"text":" \"Numpad6\" => Key::Numpad6,","highlight_start":27,"highlight_end":34}],"label":"variant or associated item not found in `enigo::Key`","suggested_replacement":null,"suggestion_applicability":null,"expansion":null}],"children":[],"rendered":"\u001b[1m\u001b[91merror[E0599]\u001b[0m\u001b[1m: no variant or associated item named `Numpad6` found for enum `enigo::Key` in the current scope\u001b[0m\n \u001b[1m\u001b[94m--> \u001b[0msrc/input.rs:369:27\n \u001b[1m\u001b[94m|\u001b[0m\n\u001b[1m\u001b[94m369\u001b[0m \u001b[1m\u001b[94m|\u001b[0m \"Numpad6\" => Key::Numpad6,\n \u001b[1m\u001b[94m|\u001b[0m \u001b[1m\u001b[91m^^^^^^^\u001b[0m \u001b[1m\u001b[91mvariant or associated item not found in `enigo::Key`\u001b[0m\n\n"}
|
|
{"$message_type":"diagnostic","message":"no variant or associated item named `Numpad7` found for enum `enigo::Key` in the current scope","code":{"code":"E0599","explanation":"This error occurs when a method is used on a type which doesn't implement it:\n\nErroneous code example:\n\n```compile_fail,E0599\nstruct Mouth;\n\nlet x = Mouth;\nx.chocolate(); // error: no method named `chocolate` found for type `Mouth`\n // in the current scope\n```\n\nIn this case, you need to implement the `chocolate` method to fix the error:\n\n```\nstruct Mouth;\n\nimpl Mouth {\n fn chocolate(&self) { // We implement the `chocolate` method here.\n println!(\"Hmmm! I love chocolate!\");\n }\n}\n\nlet x = Mouth;\nx.chocolate(); // ok!\n```\n"},"level":"error","spans":[{"file_name":"src/input.rs","byte_start":14027,"byte_end":14034,"line_start":370,"line_end":370,"column_start":27,"column_end":34,"is_primary":true,"text":[{"text":" \"Numpad7\" => Key::Numpad7,","highlight_start":27,"highlight_end":34}],"label":"variant or associated item not found in `enigo::Key`","suggested_replacement":null,"suggestion_applicability":null,"expansion":null}],"children":[],"rendered":"\u001b[1m\u001b[91merror[E0599]\u001b[0m\u001b[1m: no variant or associated item named `Numpad7` found for enum `enigo::Key` in the current scope\u001b[0m\n \u001b[1m\u001b[94m--> \u001b[0msrc/input.rs:370:27\n \u001b[1m\u001b[94m|\u001b[0m\n\u001b[1m\u001b[94m370\u001b[0m \u001b[1m\u001b[94m|\u001b[0m \"Numpad7\" => Key::Numpad7,\n \u001b[1m\u001b[94m|\u001b[0m \u001b[1m\u001b[91m^^^^^^^\u001b[0m \u001b[1m\u001b[91mvariant or associated item not found in `enigo::Key`\u001b[0m\n\n"}
|
|
{"$message_type":"diagnostic","message":"no variant or associated item named `Numpad8` found for enum `enigo::Key` in the current scope","code":{"code":"E0599","explanation":"This error occurs when a method is used on a type which doesn't implement it:\n\nErroneous code example:\n\n```compile_fail,E0599\nstruct Mouth;\n\nlet x = Mouth;\nx.chocolate(); // error: no method named `chocolate` found for type `Mouth`\n // in the current scope\n```\n\nIn this case, you need to implement the `chocolate` method to fix the error:\n\n```\nstruct Mouth;\n\nimpl Mouth {\n fn chocolate(&self) { // We implement the `chocolate` method here.\n println!(\"Hmmm! I love chocolate!\");\n }\n}\n\nlet x = Mouth;\nx.chocolate(); // ok!\n```\n"},"level":"error","spans":[{"file_name":"src/input.rs","byte_start":14062,"byte_end":14069,"line_start":371,"line_end":371,"column_start":27,"column_end":34,"is_primary":true,"text":[{"text":" \"Numpad8\" => Key::Numpad8,","highlight_start":27,"highlight_end":34}],"label":"variant or associated item not found in `enigo::Key`","suggested_replacement":null,"suggestion_applicability":null,"expansion":null}],"children":[],"rendered":"\u001b[1m\u001b[91merror[E0599]\u001b[0m\u001b[1m: no variant or associated item named `Numpad8` found for enum `enigo::Key` in the current scope\u001b[0m\n \u001b[1m\u001b[94m--> \u001b[0msrc/input.rs:371:27\n \u001b[1m\u001b[94m|\u001b[0m\n\u001b[1m\u001b[94m371\u001b[0m \u001b[1m\u001b[94m|\u001b[0m \"Numpad8\" => Key::Numpad8,\n \u001b[1m\u001b[94m|\u001b[0m \u001b[1m\u001b[91m^^^^^^^\u001b[0m \u001b[1m\u001b[91mvariant or associated item not found in `enigo::Key`\u001b[0m\n\n"}
|
|
{"$message_type":"diagnostic","message":"no variant or associated item named `Numpad9` found for enum `enigo::Key` in the current scope","code":{"code":"E0599","explanation":"This error occurs when a method is used on a type which doesn't implement it:\n\nErroneous code example:\n\n```compile_fail,E0599\nstruct Mouth;\n\nlet x = Mouth;\nx.chocolate(); // error: no method named `chocolate` found for type `Mouth`\n // in the current scope\n```\n\nIn this case, you need to implement the `chocolate` method to fix the error:\n\n```\nstruct Mouth;\n\nimpl Mouth {\n fn chocolate(&self) { // We implement the `chocolate` method here.\n println!(\"Hmmm! I love chocolate!\");\n }\n}\n\nlet x = Mouth;\nx.chocolate(); // ok!\n```\n"},"level":"error","spans":[{"file_name":"src/input.rs","byte_start":14097,"byte_end":14104,"line_start":372,"line_end":372,"column_start":27,"column_end":34,"is_primary":true,"text":[{"text":" \"Numpad9\" => Key::Numpad9,","highlight_start":27,"highlight_end":34}],"label":"variant or associated item not found in `enigo::Key`","suggested_replacement":null,"suggestion_applicability":null,"expansion":null}],"children":[],"rendered":"\u001b[1m\u001b[91merror[E0599]\u001b[0m\u001b[1m: no variant or associated item named `Numpad9` found for enum `enigo::Key` in the current scope\u001b[0m\n \u001b[1m\u001b[94m--> \u001b[0msrc/input.rs:372:27\n \u001b[1m\u001b[94m|\u001b[0m\n\u001b[1m\u001b[94m372\u001b[0m \u001b[1m\u001b[94m|\u001b[0m \"Numpad9\" => Key::Numpad9,\n \u001b[1m\u001b[94m|\u001b[0m \u001b[1m\u001b[91m^^^^^^^\u001b[0m \u001b[1m\u001b[91mvariant or associated item not found in `enigo::Key`\u001b[0m\n\n"}
|
|
{"$message_type":"diagnostic","message":"no variant or associated item named `NumpadAdd` found for enum `enigo::Key` in the current scope","code":{"code":"E0599","explanation":"This error occurs when a method is used on a type which doesn't implement it:\n\nErroneous code example:\n\n```compile_fail,E0599\nstruct Mouth;\n\nlet x = Mouth;\nx.chocolate(); // error: no method named `chocolate` found for type `Mouth`\n // in the current scope\n```\n\nIn this case, you need to implement the `chocolate` method to fix the error:\n\n```\nstruct Mouth;\n\nimpl Mouth {\n fn chocolate(&self) { // We implement the `chocolate` method here.\n println!(\"Hmmm! I love chocolate!\");\n }\n}\n\nlet x = Mouth;\nx.chocolate(); // ok!\n```\n"},"level":"error","spans":[{"file_name":"src/input.rs","byte_start":14134,"byte_end":14143,"line_start":373,"line_end":373,"column_start":29,"column_end":38,"is_primary":true,"text":[{"text":" \"NumpadAdd\" => Key::NumpadAdd,","highlight_start":29,"highlight_end":38}],"label":"variant or associated item not found in `enigo::Key`","suggested_replacement":null,"suggestion_applicability":null,"expansion":null}],"children":[],"rendered":"\u001b[1m\u001b[91merror[E0599]\u001b[0m\u001b[1m: no variant or associated item named `NumpadAdd` found for enum `enigo::Key` in the current scope\u001b[0m\n \u001b[1m\u001b[94m--> \u001b[0msrc/input.rs:373:29\n \u001b[1m\u001b[94m|\u001b[0m\n\u001b[1m\u001b[94m373\u001b[0m \u001b[1m\u001b[94m|\u001b[0m \"NumpadAdd\" => Key::NumpadAdd,\n \u001b[1m\u001b[94m|\u001b[0m \u001b[1m\u001b[91m^^^^^^^^^\u001b[0m \u001b[1m\u001b[91mvariant or associated item not found in `enigo::Key`\u001b[0m\n\n"}
|
|
{"$message_type":"diagnostic","message":"no variant or associated item named `NumpadSubtract` found for enum `enigo::Key` in the current scope","code":{"code":"E0599","explanation":"This error occurs when a method is used on a type which doesn't implement it:\n\nErroneous code example:\n\n```compile_fail,E0599\nstruct Mouth;\n\nlet x = Mouth;\nx.chocolate(); // error: no method named `chocolate` found for type `Mouth`\n // in the current scope\n```\n\nIn this case, you need to implement the `chocolate` method to fix the error:\n\n```\nstruct Mouth;\n\nimpl Mouth {\n fn chocolate(&self) { // We implement the `chocolate` method here.\n println!(\"Hmmm! I love chocolate!\");\n }\n}\n\nlet x = Mouth;\nx.chocolate(); // ok!\n```\n"},"level":"error","spans":[{"file_name":"src/input.rs","byte_start":14178,"byte_end":14192,"line_start":374,"line_end":374,"column_start":34,"column_end":48,"is_primary":true,"text":[{"text":" \"NumpadSubtract\" => Key::NumpadSubtract,","highlight_start":34,"highlight_end":48}],"label":"variant or associated item not found in `enigo::Key`","suggested_replacement":null,"suggestion_applicability":null,"expansion":null}],"children":[],"rendered":"\u001b[1m\u001b[91merror[E0599]\u001b[0m\u001b[1m: no variant or associated item named `NumpadSubtract` found for enum `enigo::Key` in the current scope\u001b[0m\n \u001b[1m\u001b[94m--> \u001b[0msrc/input.rs:374:34\n \u001b[1m\u001b[94m|\u001b[0m\n\u001b[1m\u001b[94m374\u001b[0m \u001b[1m\u001b[94m|\u001b[0m \"NumpadSubtract\" => Key::NumpadSubtract,\n \u001b[1m\u001b[94m|\u001b[0m \u001b[1m\u001b[91m^^^^^^^^^^^^^^\u001b[0m \u001b[1m\u001b[91mvariant or associated item not found in `enigo::Key`\u001b[0m\n\n"}
|
|
{"$message_type":"diagnostic","message":"no variant or associated item named `NumpadMultiply` found for enum `enigo::Key` in the current scope","code":{"code":"E0599","explanation":"This error occurs when a method is used on a type which doesn't implement it:\n\nErroneous code example:\n\n```compile_fail,E0599\nstruct Mouth;\n\nlet x = Mouth;\nx.chocolate(); // error: no method named `chocolate` found for type `Mouth`\n // in the current scope\n```\n\nIn this case, you need to implement the `chocolate` method to fix the error:\n\n```\nstruct Mouth;\n\nimpl Mouth {\n fn chocolate(&self) { // We implement the `chocolate` method here.\n println!(\"Hmmm! I love chocolate!\");\n }\n}\n\nlet x = Mouth;\nx.chocolate(); // ok!\n```\n"},"level":"error","spans":[{"file_name":"src/input.rs","byte_start":14227,"byte_end":14241,"line_start":375,"line_end":375,"column_start":34,"column_end":48,"is_primary":true,"text":[{"text":" \"NumpadMultiply\" => Key::NumpadMultiply,","highlight_start":34,"highlight_end":48}],"label":"variant or associated item not found in `enigo::Key`","suggested_replacement":null,"suggestion_applicability":null,"expansion":null}],"children":[],"rendered":"\u001b[1m\u001b[91merror[E0599]\u001b[0m\u001b[1m: no variant or associated item named `NumpadMultiply` found for enum `enigo::Key` in the current scope\u001b[0m\n \u001b[1m\u001b[94m--> \u001b[0msrc/input.rs:375:34\n \u001b[1m\u001b[94m|\u001b[0m\n\u001b[1m\u001b[94m375\u001b[0m \u001b[1m\u001b[94m|\u001b[0m \"NumpadMultiply\" => Key::NumpadMultiply,\n \u001b[1m\u001b[94m|\u001b[0m \u001b[1m\u001b[91m^^^^^^^^^^^^^^\u001b[0m \u001b[1m\u001b[91mvariant or associated item not found in `enigo::Key`\u001b[0m\n\n"}
|
|
{"$message_type":"diagnostic","message":"no variant or associated item named `NumpadDivide` found for enum `enigo::Key` in the current scope","code":{"code":"E0599","explanation":"This error occurs when a method is used on a type which doesn't implement it:\n\nErroneous code example:\n\n```compile_fail,E0599\nstruct Mouth;\n\nlet x = Mouth;\nx.chocolate(); // error: no method named `chocolate` found for type `Mouth`\n // in the current scope\n```\n\nIn this case, you need to implement the `chocolate` method to fix the error:\n\n```\nstruct Mouth;\n\nimpl Mouth {\n fn chocolate(&self) { // We implement the `chocolate` method here.\n println!(\"Hmmm! I love chocolate!\");\n }\n}\n\nlet x = Mouth;\nx.chocolate(); // ok!\n```\n"},"level":"error","spans":[{"file_name":"src/input.rs","byte_start":14274,"byte_end":14286,"line_start":376,"line_end":376,"column_start":32,"column_end":44,"is_primary":true,"text":[{"text":" \"NumpadDivide\" => Key::NumpadDivide,","highlight_start":32,"highlight_end":44}],"label":"variant or associated item not found in `enigo::Key`","suggested_replacement":null,"suggestion_applicability":null,"expansion":null}],"children":[],"rendered":"\u001b[1m\u001b[91merror[E0599]\u001b[0m\u001b[1m: no variant or associated item named `NumpadDivide` found for enum `enigo::Key` in the current scope\u001b[0m\n \u001b[1m\u001b[94m--> \u001b[0msrc/input.rs:376:32\n \u001b[1m\u001b[94m|\u001b[0m\n\u001b[1m\u001b[94m376\u001b[0m \u001b[1m\u001b[94m|\u001b[0m \"NumpadDivide\" => Key::NumpadDivide,\n \u001b[1m\u001b[94m|\u001b[0m \u001b[1m\u001b[91m^^^^^^^^^^^^\u001b[0m \u001b[1m\u001b[91mvariant or associated item not found in `enigo::Key`\u001b[0m\n\n"}
|
|
{"$message_type":"diagnostic","message":"no variant or associated item named `NumpadDecimal` found for enum `enigo::Key` in the current scope","code":{"code":"E0599","explanation":"This error occurs when a method is used on a type which doesn't implement it:\n\nErroneous code example:\n\n```compile_fail,E0599\nstruct Mouth;\n\nlet x = Mouth;\nx.chocolate(); // error: no method named `chocolate` found for type `Mouth`\n // in the current scope\n```\n\nIn this case, you need to implement the `chocolate` method to fix the error:\n\n```\nstruct Mouth;\n\nimpl Mouth {\n fn chocolate(&self) { // We implement the `chocolate` method here.\n println!(\"Hmmm! I love chocolate!\");\n }\n}\n\nlet x = Mouth;\nx.chocolate(); // ok!\n```\n"},"level":"error","spans":[{"file_name":"src/input.rs","byte_start":14320,"byte_end":14333,"line_start":377,"line_end":377,"column_start":33,"column_end":46,"is_primary":true,"text":[{"text":" \"NumpadDecimal\" => Key::NumpadDecimal,","highlight_start":33,"highlight_end":46}],"label":"variant or associated item not found in `enigo::Key`","suggested_replacement":null,"suggestion_applicability":null,"expansion":null}],"children":[],"rendered":"\u001b[1m\u001b[91merror[E0599]\u001b[0m\u001b[1m: no variant or associated item named `NumpadDecimal` found for enum `enigo::Key` in the current scope\u001b[0m\n \u001b[1m\u001b[94m--> \u001b[0msrc/input.rs:377:33\n \u001b[1m\u001b[94m|\u001b[0m\n\u001b[1m\u001b[94m377\u001b[0m \u001b[1m\u001b[94m|\u001b[0m \"NumpadDecimal\" => Key::NumpadDecimal,\n \u001b[1m\u001b[94m|\u001b[0m \u001b[1m\u001b[91m^^^^^^^^^^^^^\u001b[0m \u001b[1m\u001b[91mvariant or associated item not found in `enigo::Key`\u001b[0m\n\n"}
|
|
{"$message_type":"diagnostic","message":"no variant or associated item named `NumpadEnter` found for enum `enigo::Key` in the current scope","code":{"code":"E0599","explanation":"This error occurs when a method is used on a type which doesn't implement it:\n\nErroneous code example:\n\n```compile_fail,E0599\nstruct Mouth;\n\nlet x = Mouth;\nx.chocolate(); // error: no method named `chocolate` found for type `Mouth`\n // in the current scope\n```\n\nIn this case, you need to implement the `chocolate` method to fix the error:\n\n```\nstruct Mouth;\n\nimpl Mouth {\n fn chocolate(&self) { // We implement the `chocolate` method here.\n println!(\"Hmmm! I love chocolate!\");\n }\n}\n\nlet x = Mouth;\nx.chocolate(); // ok!\n```\n"},"level":"error","spans":[{"file_name":"src/input.rs","byte_start":14365,"byte_end":14376,"line_start":378,"line_end":378,"column_start":31,"column_end":42,"is_primary":true,"text":[{"text":" \"NumpadEnter\" => Key::NumpadEnter,","highlight_start":31,"highlight_end":42}],"label":"variant or associated item not found in `enigo::Key`","suggested_replacement":null,"suggestion_applicability":null,"expansion":null}],"children":[],"rendered":"\u001b[1m\u001b[91merror[E0599]\u001b[0m\u001b[1m: no variant or associated item named `NumpadEnter` found for enum `enigo::Key` in the current scope\u001b[0m\n \u001b[1m\u001b[94m--> \u001b[0msrc/input.rs:378:31\n \u001b[1m\u001b[94m|\u001b[0m\n\u001b[1m\u001b[94m378\u001b[0m \u001b[1m\u001b[94m|\u001b[0m \"NumpadEnter\" => Key::NumpadEnter,\n \u001b[1m\u001b[94m|\u001b[0m \u001b[1m\u001b[91m^^^^^^^^^^^\u001b[0m \u001b[1m\u001b[91mvariant or associated item not found in `enigo::Key`\u001b[0m\n\n"}
|
|
{"$message_type":"diagnostic","message":"no variant or associated item named `NumLock` found for enum `enigo::Key` in the current scope","code":{"code":"E0599","explanation":"This error occurs when a method is used on a type which doesn't implement it:\n\nErroneous code example:\n\n```compile_fail,E0599\nstruct Mouth;\n\nlet x = Mouth;\nx.chocolate(); // error: no method named `chocolate` found for type `Mouth`\n // in the current scope\n```\n\nIn this case, you need to implement the `chocolate` method to fix the error:\n\n```\nstruct Mouth;\n\nimpl Mouth {\n fn chocolate(&self) { // We implement the `chocolate` method here.\n println!(\"Hmmm! I love chocolate!\");\n }\n}\n\nlet x = Mouth;\nx.chocolate(); // ok!\n```\n"},"level":"error","spans":[{"file_name":"src/input.rs","byte_start":14404,"byte_end":14411,"line_start":379,"line_end":379,"column_start":27,"column_end":34,"is_primary":true,"text":[{"text":" \"NumLock\" => Key::NumLock,","highlight_start":27,"highlight_end":34}],"label":"variant or associated item not found in `enigo::Key`","suggested_replacement":null,"suggestion_applicability":null,"expansion":null}],"children":[{"message":"there is a variant with a similar name","code":null,"level":"help","spans":[{"file_name":"src/input.rs","byte_start":14404,"byte_end":14411,"line_start":379,"line_end":379,"column_start":27,"column_end":34,"is_primary":true,"text":[{"text":" \"NumLock\" => Key::NumLock,","highlight_start":27,"highlight_end":34}],"label":null,"suggested_replacement":"Numlock","suggestion_applicability":"HasPlaceholders","expansion":null}],"children":[],"rendered":null}],"rendered":"\u001b[1m\u001b[91merror[E0599]\u001b[0m\u001b[1m: no variant or associated item named `NumLock` found for enum `enigo::Key` in the current scope\u001b[0m\n \u001b[1m\u001b[94m--> \u001b[0msrc/input.rs:379:27\n \u001b[1m\u001b[94m|\u001b[0m\n\u001b[1m\u001b[94m379\u001b[0m \u001b[1m\u001b[94m|\u001b[0m \"NumLock\" => Key::NumLock,\n \u001b[1m\u001b[94m|\u001b[0m \u001b[1m\u001b[91m^^^^^^^\u001b[0m \u001b[1m\u001b[91mvariant or associated item not found in `enigo::Key`\u001b[0m\n \u001b[1m\u001b[94m|\u001b[0m\n\u001b[1m\u001b[96mhelp\u001b[0m: there is a variant with a similar name\n \u001b[1m\u001b[94m|\u001b[0m\n\u001b[1m\u001b[94m379\u001b[0m \u001b[91m- \u001b[0m \"NumLock\" => Key::\u001b[91mNumLock\u001b[0m,\n\u001b[1m\u001b[94m379\u001b[0m \u001b[92m+ \u001b[0m \"NumLock\" => Key::\u001b[92mNumlock\u001b[0m,\n \u001b[1m\u001b[94m|\u001b[0m\n\n"}
|
|
{"$message_type":"diagnostic","message":"type annotations needed for `Vec<(_, std::string::String)>`","code":{"code":"E0282","explanation":"The compiler could not infer a type and asked for a type annotation.\n\nErroneous code example:\n\n```compile_fail,E0282\nlet x = Vec::new();\n```\n\nThis error indicates that type inference did not result in one unique possible\ntype, and extra information is required. In most cases this can be provided\nby adding a type annotation. Sometimes you need to specify a generic type\nparameter manually.\n\nIn the example above, type `Vec` has a type parameter `T`. When calling\n`Vec::new`, barring any other later usage of the variable `x` that allows the\ncompiler to infer what type `T` is, the compiler needs to be told what it is.\n\nThe type can be specified on the variable:\n\n```\nlet x: Vec<i32> = Vec::new();\n```\n\nThe type can also be specified in the path of the expression:\n\n```\nlet x = Vec::<i32>::new();\n```\n\nIn cases with more complex types, it is not necessary to annotate the full\ntype. Once the ambiguity is resolved, the compiler can infer the rest:\n\n```\nlet x: Vec<_> = \"hello\".chars().rev().collect();\n```\n\nAnother way to provide the compiler with enough information, is to specify the\ngeneric type parameter:\n\n```\nlet x = \"hello\".chars().rev().collect::<Vec<char>>();\n```\n\nAgain, you need not specify the full type if the compiler can infer it:\n\n```\nlet x = \"hello\".chars().rev().collect::<Vec<_>>();\n```\n\nApart from a method or function with a generic type parameter, this error can\noccur when a type parameter of a struct or trait cannot be inferred. In that\ncase it is not always possible to use a type annotation, because all candidates\nhave the same return type. For instance:\n\n```compile_fail,E0282\nstruct Foo<T> {\n num: T,\n}\n\nimpl<T> Foo<T> {\n fn bar() -> i32 {\n 0\n }\n\n fn baz() {\n let number = Foo::bar();\n }\n}\n```\n\nThis will fail because the compiler does not know which instance of `Foo` to\ncall `bar` on. Change `Foo::bar()` to `Foo::<T>::bar()` to resolve the error.\n"},"level":"error","spans":[{"file_name":"src/service.rs","byte_start":22954,"byte_end":22955,"line_start":641,"line_end":641,"column_start":78,"column_end":79,"is_primary":false,"text":[{"text":" info!(\"captured display environment: {:?}\", envs.iter().map(|(k, _)| k.as_str()).collect::<Vec<_>>());","highlight_start":78,"highlight_end":79}],"label":"type must be known at this point","suggested_replacement":null,"suggestion_applicability":null,"expansion":null},{"file_name":"src/service.rs","byte_start":21790,"byte_end":21798,"line_start":610,"line_end":610,"column_start":9,"column_end":17,"is_primary":true,"text":[{"text":" let mut envs = Vec::new();","highlight_start":9,"highlight_end":17}],"label":null,"suggested_replacement":null,"suggestion_applicability":null,"expansion":null}],"children":[{"message":"consider giving `envs` an explicit type, where the placeholders `_` are specified","code":null,"level":"help","spans":[{"file_name":"src/service.rs","byte_start":21798,"byte_end":21798,"line_start":610,"line_end":610,"column_start":17,"column_end":17,"is_primary":true,"text":[{"text":" let mut envs = Vec::new();","highlight_start":17,"highlight_end":17}],"label":null,"suggested_replacement":": Vec<(T, _)>","suggestion_applicability":"HasPlaceholders","expansion":null}],"children":[],"rendered":null}],"rendered":"\u001b[1m\u001b[91merror[E0282]\u001b[0m\u001b[1m: type annotations needed for `Vec<(_, std::string::String)>`\u001b[0m\n \u001b[1m\u001b[94m--> \u001b[0msrc/service.rs:610:9\n \u001b[1m\u001b[94m|\u001b[0m\n\u001b[1m\u001b[94m610\u001b[0m \u001b[1m\u001b[94m|\u001b[0m let mut envs = Vec::new();\n \u001b[1m\u001b[94m|\u001b[0m \u001b[1m\u001b[91m^^^^^^^^\u001b[0m\n\u001b[1m\u001b[94m...\u001b[0m\n\u001b[1m\u001b[94m641\u001b[0m \u001b[1m\u001b[94m|\u001b[0m info!(\"captured display environment: {:?}\", envs.iter().map(|(k, _)| k.as_str()).collect::<Vec<_>>());\n \u001b[1m\u001b[94m|\u001b[0m \u001b[1m\u001b[94m-\u001b[0m \u001b[1m\u001b[94mtype must be known at this point\u001b[0m\n \u001b[1m\u001b[94m|\u001b[0m\n\u001b[1m\u001b[96mhelp\u001b[0m: consider giving `envs` an explicit type, where the placeholders `_` are specified\n \u001b[1m\u001b[94m|\u001b[0m\n\u001b[1m\u001b[94m610\u001b[0m \u001b[1m\u001b[94m| \u001b[0m let mut envs\u001b[92m: Vec<(T, _)>\u001b[0m = Vec::new();\n \u001b[1m\u001b[94m|\u001b[0m \u001b[92m+++++++++++++\u001b[0m\n\n"}
|
|
{"$message_type":"diagnostic","message":"no function or associated item named `parse` found for struct `Cli` in the current scope","code":{"code":"E0599","explanation":"This error occurs when a method is used on a type which doesn't implement it:\n\nErroneous code example:\n\n```compile_fail,E0599\nstruct Mouth;\n\nlet x = Mouth;\nx.chocolate(); // error: no method named `chocolate` found for type `Mouth`\n // in the current scope\n```\n\nIn this case, you need to implement the `chocolate` method to fix the error:\n\n```\nstruct Mouth;\n\nimpl Mouth {\n fn chocolate(&self) { // We implement the `chocolate` method here.\n println!(\"Hmmm! I love chocolate!\");\n }\n}\n\nlet x = Mouth;\nx.chocolate(); // ok!\n```\n"},"level":"error","spans":[{"file_name":"src/main.rs","byte_start":2989,"byte_end":2994,"line_start":73,"line_end":73,"column_start":25,"column_end":30,"is_primary":true,"text":[{"text":" let cli = cli::Cli::parse();","highlight_start":25,"highlight_end":30}],"label":"function or associated item not found in `Cli`","suggested_replacement":null,"suggestion_applicability":null,"expansion":null},{"file_name":"src/cli.rs","byte_start":1090,"byte_end":1104,"line_start":33,"line_end":33,"column_start":1,"column_end":15,"is_primary":false,"text":[{"text":"pub struct Cli {","highlight_start":1,"highlight_end":15}],"label":"function or associated item `parse` not found for this struct","suggested_replacement":null,"suggestion_applicability":null,"expansion":null}],"children":[{"message":"items from traits can only be used if the trait is in scope","code":null,"level":"help","spans":[],"children":[],"rendered":null},{"message":"trait `Parser` which provides `parse` is implemented but not in scope; perhaps you want to import it","code":null,"level":"help","spans":[{"file_name":"src/main.rs","byte_start":1329,"byte_end":1329,"line_start":31,"line_end":31,"column_start":1,"column_end":1,"is_primary":true,"text":[{"text":"mod capture;","highlight_start":1,"highlight_end":1}],"label":null,"suggested_replacement":"use clap::Parser;\n","suggestion_applicability":"MaybeIncorrect","expansion":null}],"children":[],"rendered":null},{"message":"there is an associated function `try_parse` with a similar name","code":null,"level":"help","spans":[{"file_name":"src/main.rs","byte_start":2989,"byte_end":2994,"line_start":73,"line_end":73,"column_start":25,"column_end":30,"is_primary":true,"text":[{"text":" let cli = cli::Cli::parse();","highlight_start":25,"highlight_end":30}],"label":null,"suggested_replacement":"try_parse","suggestion_applicability":"MaybeIncorrect","expansion":null}],"children":[],"rendered":null}],"rendered":"\u001b[1m\u001b[91merror[E0599]\u001b[0m\u001b[1m: no function or associated item named `parse` found for struct `Cli` in the current scope\u001b[0m\n \u001b[1m\u001b[94m--> \u001b[0msrc/main.rs:73:25\n \u001b[1m\u001b[94m|\u001b[0m\n\u001b[1m\u001b[94m73\u001b[0m \u001b[1m\u001b[94m|\u001b[0m let cli = cli::Cli::parse();\n \u001b[1m\u001b[94m|\u001b[0m \u001b[1m\u001b[91m^^^^^\u001b[0m \u001b[1m\u001b[91mfunction or associated item not found in `Cli`\u001b[0m\n \u001b[1m\u001b[94m|\u001b[0m\n \u001b[1m\u001b[94m::: \u001b[0msrc/cli.rs:33:1\n \u001b[1m\u001b[94m|\u001b[0m\n\u001b[1m\u001b[94m33\u001b[0m \u001b[1m\u001b[94m|\u001b[0m pub struct Cli {\n \u001b[1m\u001b[94m|\u001b[0m \u001b[1m\u001b[94m--------------\u001b[0m \u001b[1m\u001b[94mfunction or associated item `parse` not found for this struct\u001b[0m\n \u001b[1m\u001b[94m|\u001b[0m\n \u001b[1m\u001b[94m= \u001b[0m\u001b[1mhelp\u001b[0m: items from traits can only be used if the trait is in scope\n\u001b[1m\u001b[96mhelp\u001b[0m: trait `Parser` which provides `parse` is implemented but not in scope; perhaps you want to import it\n \u001b[1m\u001b[94m|\u001b[0m\n\u001b[1m\u001b[94m31\u001b[0m \u001b[92m+ use clap::Parser;\u001b[0m\n \u001b[1m\u001b[94m|\u001b[0m\n\u001b[1m\u001b[96mhelp\u001b[0m: there is an associated function `try_parse` with a similar name\n \u001b[1m\u001b[94m|\u001b[0m\n\u001b[1m\u001b[94m73\u001b[0m \u001b[1m\u001b[94m| \u001b[0m let cli = cli::Cli::\u001b[92mtry_\u001b[0mparse();\n \u001b[1m\u001b[94m|\u001b[0m \u001b[92m++++\u001b[0m\n\n"}
|
|
{"$message_type":"diagnostic","message":"expected tuple struct or tuple variant, found struct variant `cli::Command::Run`","code":{"code":"E0164","explanation":"Something which is neither a tuple struct nor a tuple variant was used as a\npattern.\n\nErroneous code example:\n\n```compile_fail,E0164\nenum A {\n B,\n C,\n}\n\nimpl A {\n fn new() {}\n}\n\nfn bar(foo: A) {\n match foo {\n A::new() => (), // error!\n _ => {}\n }\n}\n```\n\nThis error means that an attempt was made to match something which is neither a\ntuple struct nor a tuple variant. Only these two elements are allowed as a\npattern:\n\n```\nenum A {\n B,\n C,\n}\n\nimpl A {\n fn new() {}\n}\n\nfn bar(foo: A) {\n match foo {\n A::B => (), // ok!\n _ => {}\n }\n}\n```\n"},"level":"error","spans":[{"file_name":"src/main.rs","byte_start":3031,"byte_end":3054,"line_start":76,"line_end":76,"column_start":9,"column_end":32,"is_primary":true,"text":[{"text":" cli::Command::Run(opts) => {","highlight_start":9,"highlight_end":32}],"label":"not a tuple struct or tuple variant","suggested_replacement":null,"suggestion_applicability":null,"expansion":null}],"children":[{"message":"the struct variant's field is being ignored","code":null,"level":"help","spans":[{"file_name":"src/main.rs","byte_start":3048,"byte_end":3054,"line_start":76,"line_end":76,"column_start":26,"column_end":32,"is_primary":true,"text":[{"text":" cli::Command::Run(opts) => {","highlight_start":26,"highlight_end":32}],"label":null,"suggested_replacement":" { opts: _ }","suggestion_applicability":"HasPlaceholders","expansion":null}],"children":[],"rendered":null}],"rendered":"\u001b[1m\u001b[91merror[E0164]\u001b[0m\u001b[1m: expected tuple struct or tuple variant, found struct variant `cli::Command::Run`\u001b[0m\n \u001b[1m\u001b[94m--> \u001b[0msrc/main.rs:76:9\n \u001b[1m\u001b[94m|\u001b[0m\n\u001b[1m\u001b[94m76\u001b[0m \u001b[1m\u001b[94m|\u001b[0m cli::Command::Run(opts) => {\n \u001b[1m\u001b[94m|\u001b[0m \u001b[1m\u001b[91m^^^^^^^^^^^^^^^^^^^^^^^\u001b[0m \u001b[1m\u001b[91mnot a tuple struct or tuple variant\u001b[0m\n \u001b[1m\u001b[94m|\u001b[0m\n\u001b[1m\u001b[96mhelp\u001b[0m: the struct variant's field is being ignored\n \u001b[1m\u001b[94m|\u001b[0m\n\u001b[1m\u001b[94m76\u001b[0m \u001b[91m- \u001b[0m cli::Command::Run\u001b[91m(opts)\u001b[0m => {\n\u001b[1m\u001b[94m76\u001b[0m \u001b[92m+ \u001b[0m cli::Command::Run\u001b[92m { opts: _ }\u001b[0m => {\n \u001b[1m\u001b[94m|\u001b[0m\n\n"}
|
|
{"$message_type":"diagnostic","message":"unused variable: `video_encoder`","code":{"code":"unused_variables","explanation":null},"level":"warning","spans":[{"file_name":"src/main.rs","byte_start":8784,"byte_end":8797,"line_start":246,"line_end":246,"column_start":5,"column_end":18,"is_primary":true,"text":[{"text":" video_encoder: &mut Box<dyn encoder::VideoEncoder>,","highlight_start":5,"highlight_end":18}],"label":null,"suggested_replacement":null,"suggestion_applicability":null,"expansion":null}],"children":[{"message":"`#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default","code":null,"level":"note","spans":[],"children":[],"rendered":null},{"message":"if this is intentional, prefix it with an underscore","code":null,"level":"help","spans":[{"file_name":"src/main.rs","byte_start":8784,"byte_end":8797,"line_start":246,"line_end":246,"column_start":5,"column_end":18,"is_primary":true,"text":[{"text":" video_encoder: &mut Box<dyn encoder::VideoEncoder>,","highlight_start":5,"highlight_end":18}],"label":null,"suggested_replacement":"_video_encoder","suggestion_applicability":"MachineApplicable","expansion":null}],"children":[],"rendered":null}],"rendered":"\u001b[1m\u001b[33mwarning\u001b[0m\u001b[1m: unused variable: `video_encoder`\u001b[0m\n \u001b[1m\u001b[94m--> \u001b[0msrc/main.rs:246:5\n \u001b[1m\u001b[94m|\u001b[0m\n\u001b[1m\u001b[94m246\u001b[0m \u001b[1m\u001b[94m|\u001b[0m video_encoder: &mut Box<dyn encoder::VideoEncoder>,\n \u001b[1m\u001b[94m|\u001b[0m \u001b[1m\u001b[33m^^^^^^^^^^^^^\u001b[0m \u001b[1m\u001b[33mhelp: if this is intentional, prefix it with an underscore: `_video_encoder`\u001b[0m\n \u001b[1m\u001b[94m|\u001b[0m\n \u001b[1m\u001b[94m= \u001b[0m\u001b[1mnote\u001b[0m: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default\n\n"}
|
|
{"$message_type":"diagnostic","message":"unused variable: `hb_session_id`","code":{"code":"unused_variables","explanation":null},"level":"warning","spans":[{"file_name":"src/main.rs","byte_start":10565,"byte_end":10578,"line_start":301,"line_end":301,"column_start":9,"column_end":22,"is_primary":true,"text":[{"text":" let hb_session_id = session_id.to_string();","highlight_start":9,"highlight_end":22}],"label":null,"suggested_replacement":null,"suggestion_applicability":null,"expansion":null}],"children":[{"message":"if this is intentional, prefix it with an underscore","code":null,"level":"help","spans":[{"file_name":"src/main.rs","byte_start":10565,"byte_end":10578,"line_start":301,"line_end":301,"column_start":9,"column_end":22,"is_primary":true,"text":[{"text":" let hb_session_id = session_id.to_string();","highlight_start":9,"highlight_end":22}],"label":null,"suggested_replacement":"_hb_session_id","suggestion_applicability":"MachineApplicable","expansion":null}],"children":[],"rendered":null}],"rendered":"\u001b[1m\u001b[33mwarning\u001b[0m\u001b[1m: unused variable: `hb_session_id`\u001b[0m\n \u001b[1m\u001b[94m--> \u001b[0msrc/main.rs:301:9\n \u001b[1m\u001b[94m|\u001b[0m\n\u001b[1m\u001b[94m301\u001b[0m \u001b[1m\u001b[94m|\u001b[0m let hb_session_id = session_id.to_string();\n \u001b[1m\u001b[94m|\u001b[0m \u001b[1m\u001b[33m^^^^^^^^^^^^^\u001b[0m \u001b[1m\u001b[33mhelp: if this is intentional, prefix it with an underscore: `_hb_session_id`\u001b[0m\n\n"}
|
|
{"$message_type":"diagnostic","message":"aborting due to 86 previous errors; 4 warnings emitted","code":null,"level":"error","spans":[],"children":[],"rendered":"\u001b[1m\u001b[91merror\u001b[0m\u001b[1m: aborting due to 86 previous errors; 4 warnings emitted\u001b[0m\n\n"}
|
|
{"$message_type":"diagnostic","message":"Some errors have detailed explanations: E0061, E0107, E0164, E0282, E0382, E0425, E0432, E0433, E0599.","code":null,"level":"failure-note","spans":[],"children":[],"rendered":"\u001b[1mSome errors have detailed explanations: E0061, E0107, E0164, E0282, E0382, E0425, E0432, E0433, E0599.\u001b[0m\n"}
|
|
{"$message_type":"diagnostic","message":"For more information about an error, try `rustc --explain E0061`.","code":null,"level":"failure-note","spans":[],"children":[],"rendered":"\u001b[1mFor more information about an error, try `rustc --explain E0061`.\u001b[0m\n"}
|