projects/server/target/debug/.fingerprint/butterfly-server-44a930d20c6d99e6/output-bin-butterfly-server

21 lines
73 KiB
Plaintext

{"$message_type":"diagnostic","message":"couldn't read `src/../../static/index.html`: No such file or directory (os error 2)","code":null,"level":"error","spans":[{"file_name":"src/main.rs","byte_start":2617,"byte_end":2656,"line_start":79,"line_end":79,"column_start":27,"column_end":66,"is_primary":true,"text":[{"text":" .body(include_str!(\"../../static/index.html\"))","highlight_start":27,"highlight_end":66}],"label":null,"suggested_replacement":null,"suggestion_applicability":null,"expansion":{"span":{"file_name":"src/main.rs","byte_start":2617,"byte_end":2656,"line_start":79,"line_end":79,"column_start":27,"column_end":66,"is_primary":false,"text":[{"text":" .body(include_str!(\"../../static/index.html\"))","highlight_start":27,"highlight_end":66}],"label":null,"suggested_replacement":null,"suggestion_applicability":null,"expansion":null},"macro_decl_name":"include_str!","def_site_span":{"file_name":"/rustc/e408947bfd200af42db322daf0fadfe7e26d3bd1/library/core/src/macros/mod.rs","byte_start":47126,"byte_end":47150,"line_start":1320,"line_end":1320,"column_start":5,"column_end":29,"is_primary":false,"text":[],"label":null,"suggested_replacement":null,"suggestion_applicability":null,"expansion":null}}}],"children":[{"message":"there is a file with the same name in a different directory","code":null,"level":"help","spans":[{"file_name":"src/main.rs","byte_start":2630,"byte_end":2655,"line_start":79,"line_end":79,"column_start":40,"column_end":65,"is_primary":true,"text":[{"text":" .body(include_str!(\"../../static/index.html\"))","highlight_start":40,"highlight_end":65}],"label":null,"suggested_replacement":"\"../static/index.html\"","suggestion_applicability":"MachineApplicable","expansion":null}],"children":[],"rendered":null}],"rendered":"\u001b[1m\u001b[91merror\u001b[0m\u001b[1m: couldn't read `src/../../static/index.html`: No such file or directory (os error 2)\u001b[0m\n \u001b[1m\u001b[94m--> \u001b[0msrc/main.rs:79:27\n \u001b[1m\u001b[94m|\u001b[0m\n\u001b[1m\u001b[94m79\u001b[0m \u001b[1m\u001b[94m|\u001b[0m .body(include_str!(\"../../static/index.html\"))\n \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 file with the same name in a different directory\n \u001b[1m\u001b[94m|\u001b[0m\n\u001b[1m\u001b[94m79\u001b[0m \u001b[91m- \u001b[0m .body(include_str!(\u001b[91m\"../../static/index.html\"\u001b[0m))\n\u001b[1m\u001b[94m79\u001b[0m \u001b[92m+ \u001b[0m .body(include_str!(\u001b[92m\"../static/index.html\"\u001b[0m))\n \u001b[1m\u001b[94m|\u001b[0m\n\n"}
{"$message_type":"diagnostic","message":"couldn't read `src/../../static/index.html`: No such file or directory (os error 2)","code":null,"level":"error","spans":[{"file_name":"src/main.rs","byte_start":2864,"byte_end":2903,"line_start":84,"line_end":84,"column_start":27,"column_end":66,"is_primary":true,"text":[{"text":" .body(include_str!(\"../../static/index.html\"))","highlight_start":27,"highlight_end":66}],"label":null,"suggested_replacement":null,"suggestion_applicability":null,"expansion":{"span":{"file_name":"src/main.rs","byte_start":2864,"byte_end":2903,"line_start":84,"line_end":84,"column_start":27,"column_end":66,"is_primary":false,"text":[{"text":" .body(include_str!(\"../../static/index.html\"))","highlight_start":27,"highlight_end":66}],"label":null,"suggested_replacement":null,"suggestion_applicability":null,"expansion":null},"macro_decl_name":"include_str!","def_site_span":{"file_name":"/rustc/e408947bfd200af42db322daf0fadfe7e26d3bd1/library/core/src/macros/mod.rs","byte_start":47126,"byte_end":47150,"line_start":1320,"line_end":1320,"column_start":5,"column_end":29,"is_primary":false,"text":[],"label":null,"suggested_replacement":null,"suggestion_applicability":null,"expansion":null}}}],"children":[{"message":"there is a file with the same name in a different directory","code":null,"level":"help","spans":[{"file_name":"src/main.rs","byte_start":2877,"byte_end":2902,"line_start":84,"line_end":84,"column_start":40,"column_end":65,"is_primary":true,"text":[{"text":" .body(include_str!(\"../../static/index.html\"))","highlight_start":40,"highlight_end":65}],"label":null,"suggested_replacement":"\"../static/index.html\"","suggestion_applicability":"MachineApplicable","expansion":null}],"children":[],"rendered":null}],"rendered":"\u001b[1m\u001b[91merror\u001b[0m\u001b[1m: couldn't read `src/../../static/index.html`: No such file or directory (os error 2)\u001b[0m\n \u001b[1m\u001b[94m--> \u001b[0msrc/main.rs:84:27\n \u001b[1m\u001b[94m|\u001b[0m\n\u001b[1m\u001b[94m84\u001b[0m \u001b[1m\u001b[94m|\u001b[0m .body(include_str!(\"../../static/index.html\"))\n \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 file with the same name in a different directory\n \u001b[1m\u001b[94m|\u001b[0m\n\u001b[1m\u001b[94m84\u001b[0m \u001b[91m- \u001b[0m .body(include_str!(\u001b[91m\"../../static/index.html\"\u001b[0m))\n\u001b[1m\u001b[94m84\u001b[0m \u001b[92m+ \u001b[0m .body(include_str!(\u001b[92m\"../static/index.html\"\u001b[0m))\n \u001b[1m\u001b[94m|\u001b[0m\n\n"}
{"$message_type":"diagnostic","message":"unresolved import `actix_ws::SessionExt`","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/ws/handler.rs","byte_start":81,"byte_end":91,"line_start":4,"line_end":4,"column_start":25,"column_end":35,"is_primary":true,"text":[{"text":"use actix_ws::{Message, SessionExt};","highlight_start":25,"highlight_end":35}],"label":"no `SessionExt` in the root","suggested_replacement":null,"suggestion_applicability":null,"expansion":null}],"children":[{"message":"a similar name exists in the module","code":null,"level":"help","spans":[{"file_name":"src/ws/handler.rs","byte_start":81,"byte_end":91,"line_start":4,"line_end":4,"column_start":25,"column_end":35,"is_primary":true,"text":[{"text":"use actix_ws::{Message, SessionExt};","highlight_start":25,"highlight_end":35}],"label":null,"suggested_replacement":"Session","suggestion_applicability":"MaybeIncorrect","expansion":null}],"children":[],"rendered":null}],"rendered":"\u001b[1m\u001b[91merror[E0432]\u001b[0m\u001b[1m: unresolved import `actix_ws::SessionExt`\u001b[0m\n \u001b[1m\u001b[94m--> \u001b[0msrc/ws/handler.rs:4:25\n \u001b[1m\u001b[94m|\u001b[0m\n\u001b[1m\u001b[94m4\u001b[0m \u001b[1m\u001b[94m|\u001b[0m use actix_ws::{Message, SessionExt};\n \u001b[1m\u001b[94m|\u001b[0m \u001b[1m\u001b[91m^^^^^^^^^^\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[91mno `SessionExt` in the root\u001b[0m\n \u001b[1m\u001b[94m|\u001b[0m \u001b[1m\u001b[91mhelp: a similar name exists in the module: `Session`\u001b[0m\n\n"}
{"$message_type":"diagnostic","message":"unused import: `log::debug`","code":{"code":"unused_imports","explanation":null},"level":"warning","spans":[{"file_name":"src/stream/media.rs","byte_start":95,"byte_end":105,"line_start":5,"line_end":5,"column_start":5,"column_end":15,"is_primary":true,"text":[{"text":"use log::debug;","highlight_start":5,"highlight_end":15}],"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 whole `use` item","code":null,"level":"help","spans":[{"file_name":"src/stream/media.rs","byte_start":91,"byte_end":107,"line_start":5,"line_end":6,"column_start":1,"column_end":1,"is_primary":true,"text":[{"text":"use log::debug;","highlight_start":1,"highlight_end":16},{"text":"","highlight_start":1,"highlight_end":1}],"label":null,"suggested_replacement":"","suggestion_applicability":"MachineApplicable","expansion":null}],"children":[],"rendered":null}],"rendered":"\u001b[1m\u001b[33mwarning\u001b[0m\u001b[1m: unused import: `log::debug`\u001b[0m\n \u001b[1m\u001b[94m--> \u001b[0msrc/stream/media.rs:5:5\n \u001b[1m\u001b[94m|\u001b[0m\n\u001b[1m\u001b[94m5\u001b[0m \u001b[1m\u001b[94m|\u001b[0m use log::debug;\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: `std::sync::Arc`","code":{"code":"unused_imports","explanation":null},"level":"warning","spans":[{"file_name":"src/main.rs","byte_start":69,"byte_end":83,"line_start":8,"line_end":8,"column_start":5,"column_end":19,"is_primary":true,"text":[{"text":"use std::sync::Arc;","highlight_start":5,"highlight_end":19}],"label":null,"suggested_replacement":null,"suggestion_applicability":null,"expansion":null}],"children":[{"message":"remove the whole `use` item","code":null,"level":"help","spans":[{"file_name":"src/main.rs","byte_start":65,"byte_end":85,"line_start":8,"line_end":9,"column_start":1,"column_end":1,"is_primary":true,"text":[{"text":"use std::sync::Arc;","highlight_start":1,"highlight_end":20},{"text":"","highlight_start":1,"highlight_end":1}],"label":null,"suggested_replacement":"","suggestion_applicability":"MachineApplicable","expansion":null}],"children":[],"rendered":null}],"rendered":"\u001b[1m\u001b[33mwarning\u001b[0m\u001b[1m: unused import: `std::sync::Arc`\u001b[0m\n \u001b[1m\u001b[94m--> \u001b[0msrc/main.rs:8:5\n \u001b[1m\u001b[94m|\u001b[0m\n\u001b[1m\u001b[94m8\u001b[0m \u001b[1m\u001b[94m|\u001b[0m use std::sync::Arc;\n \u001b[1m\u001b[94m|\u001b[0m \u001b[1m\u001b[33m^^^^^^^^^^^^^^\u001b[0m\n\n"}
{"$message_type":"diagnostic","message":"no method named `query_param` found for struct `HttpRequest` 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/ws/handler.rs","byte_start":1131,"byte_end":1144,"line_start":33,"line_end":34,"column_start":23,"column_end":10,"is_primary":false,"text":[{"text":" let client_type = req","highlight_start":23,"highlight_end":26},{"text":" .query_param::<String>(\"client_type\")","highlight_start":1,"highlight_end":10}],"label":"","suggested_replacement":null,"suggestion_applicability":null,"expansion":null},{"file_name":"src/ws/handler.rs","byte_start":1144,"byte_end":1155,"line_start":34,"line_end":34,"column_start":10,"column_end":21,"is_primary":true,"text":[{"text":" .query_param::<String>(\"client_type\")","highlight_start":10,"highlight_end":21}],"label":"method not found in `HttpRequest`","suggested_replacement":null,"suggestion_applicability":null,"expansion":null}],"children":[],"rendered":"\u001b[1m\u001b[91merror[E0599]\u001b[0m\u001b[1m: no method named `query_param` found for struct `HttpRequest` in the current scope\u001b[0m\n \u001b[1m\u001b[94m--> \u001b[0msrc/ws/handler.rs:34:10\n \u001b[1m\u001b[94m|\u001b[0m\n\u001b[1m\u001b[94m33\u001b[0m \u001b[1m\u001b[94m|\u001b[0m let client_type = req\n \u001b[1m\u001b[94m|\u001b[0m \u001b[1m\u001b[94m _______________________-\u001b[0m\n\u001b[1m\u001b[94m34\u001b[0m \u001b[1m\u001b[94m|\u001b[0m \u001b[1m\u001b[94m|\u001b[0m .query_param::<String>(\"client_type\")\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 `HttpRequest`\u001b[0m\n \u001b[1m\u001b[94m|\u001b[0m \u001b[1m\u001b[94m|_________|\u001b[0m\n \u001b[1m\u001b[94m|\u001b[0m\n\n"}
{"$message_type":"diagnostic","message":"the trait bound `fn(Data<Arc<AppState>>) -> ... {health}: HttpServiceFactory` is not satisfied","code":{"code":"E0277","explanation":"You tried to use a type which doesn't implement some trait in a place which\nexpected that trait.\n\nErroneous code example:\n\n```compile_fail,E0277\n// here we declare the Foo trait with a bar method\ntrait Foo {\n fn bar(&self);\n}\n\n// we now declare a function which takes an object implementing the Foo trait\nfn some_func<T: Foo>(foo: T) {\n foo.bar();\n}\n\nfn main() {\n // we now call the method with the i32 type, which doesn't implement\n // the Foo trait\n some_func(5i32); // error: the trait bound `i32 : Foo` is not satisfied\n}\n```\n\nIn order to fix this error, verify that the type you're using does implement\nthe trait. Example:\n\n```\ntrait Foo {\n fn bar(&self);\n}\n\n// we implement the trait on the i32 type\nimpl Foo for i32 {\n fn bar(&self) {}\n}\n\nfn some_func<T: Foo>(foo: T) {\n foo.bar(); // we can now use this method since i32 implements the\n // Foo trait\n}\n\nfn main() {\n some_func(5i32); // ok!\n}\n```\n\nOr in a generic context, an erroneous code example would look like:\n\n```compile_fail,E0277\nfn some_func<T>(foo: T) {\n println!(\"{:?}\", foo); // error: the trait `core::fmt::Debug` is not\n // implemented for the type `T`\n}\n\nfn main() {\n // We now call the method with the i32 type,\n // which *does* implement the Debug trait.\n some_func(5i32);\n}\n```\n\nNote that the error here is in the definition of the generic function. Although\nwe only call it with a parameter that does implement `Debug`, the compiler\nstill rejects the function. It must work with all possible input types. In\norder to make this example compile, we need to restrict the generic type we're\naccepting:\n\n```\nuse std::fmt;\n\n// Restrict the input type to types that implement Debug.\nfn some_func<T: fmt::Debug>(foo: T) {\n println!(\"{:?}\", foo);\n}\n\nfn main() {\n // Calling the method is still fine, as i32 implements Debug.\n some_func(5i32);\n\n // This would fail to compile now:\n // struct WithoutDebug;\n // some_func(WithoutDebug);\n}\n```\n\nRust only looks at the signature of the called function, as such it must\nalready specify all requirements that will be used for every type parameter.\n"},"level":"error","spans":[{"file_name":"src/api/mod.rs","byte_start":216,"byte_end":230,"line_start":10,"line_end":10,"column_start":22,"column_end":36,"is_primary":true,"text":[{"text":" .service(health::health)","highlight_start":22,"highlight_end":36}],"label":"the trait `HttpServiceFactory` is not implemented for fn item `fn(Data<Arc<AppState>>) -> impl Future<Output = HttpResponse> {health}`","suggested_replacement":null,"suggestion_applicability":null,"expansion":null},{"file_name":"src/api/mod.rs","byte_start":208,"byte_end":215,"line_start":10,"line_end":10,"column_start":14,"column_end":21,"is_primary":false,"text":[{"text":" .service(health::health)","highlight_start":14,"highlight_end":21}],"label":"required by a bound introduced by this call","suggested_replacement":null,"suggestion_applicability":null,"expansion":null}],"children":[{"message":"the following other types implement trait `HttpServiceFactory`:\n (A, B)\n (A, B, C)\n (A, B, C, D)\n (A, B, C, D, E)\n (A, B, C, D, E, F)\n (A, B, C, D, E, F, G)\n (A, B, C, D, E, F, G, H)\n (A, B, C, D, E, F, G, H, I)\nand 10 others","code":null,"level":"help","spans":[],"children":[],"rendered":null},{"message":"required by a bound in `actix_web::Scope::<T>::service`","code":null,"level":"note","spans":[{"file_name":"/home/z/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/actix-web-4.13.0/src/scope.rs","byte_start":7773,"byte_end":7780,"line_start":232,"line_end":232,"column_start":12,"column_end":19,"is_primary":false,"text":[{"text":" pub fn service<F>(mut self, factory: F) -> Self","highlight_start":12,"highlight_end":19}],"label":"required by a bound in this associated function","suggested_replacement":null,"suggestion_applicability":null,"expansion":null},{"file_name":"/home/z/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/actix-web-4.13.0/src/scope.rs","byte_start":7835,"byte_end":7853,"line_start":234,"line_end":234,"column_start":12,"column_end":30,"is_primary":true,"text":[{"text":" F: HttpServiceFactory + 'static,","highlight_start":12,"highlight_end":30}],"label":"required by this bound in `Scope::<T>::service`","suggested_replacement":null,"suggestion_applicability":null,"expansion":null}],"children":[],"rendered":null},{"message":"the full name for the type has been written to '/home/z/my-project/projects/server/target/debug/deps/butterfly_server-44a930d20c6d99e6.long-type-2803338379466717253.txt'","code":null,"level":"note","spans":[],"children":[],"rendered":null},{"message":"consider using `--verbose` to print the full type name to the console","code":null,"level":"note","spans":[],"children":[],"rendered":null}],"rendered":"\u001b[1m\u001b[91merror[E0277]\u001b[0m\u001b[1m: the trait bound `fn(Data<Arc<AppState>>) -> ... {health}: HttpServiceFactory` is not satisfied\u001b[0m\n \u001b[1m\u001b[94m--> \u001b[0msrc/api/mod.rs:10:22\n \u001b[1m\u001b[94m|\u001b[0m\n\u001b[1m\u001b[94m 10\u001b[0m \u001b[1m\u001b[94m|\u001b[0m .service(health::health)\n \u001b[1m\u001b[94m|\u001b[0m \u001b[1m\u001b[94m-------\u001b[0m \u001b[1m\u001b[91m^^^^^^^^^^^^^^\u001b[0m \u001b[1m\u001b[91mthe trait `HttpServiceFactory` is not implemented for fn item `fn(Data<Arc<AppState>>) -> impl Future<Output = HttpResponse> {health}`\u001b[0m\n \u001b[1m\u001b[94m|\u001b[0m \u001b[1m\u001b[94m|\u001b[0m\n \u001b[1m\u001b[94m|\u001b[0m \u001b[1m\u001b[94mrequired by a bound introduced by this call\u001b[0m\n \u001b[1m\u001b[94m|\u001b[0m\n \u001b[1m\u001b[94m= \u001b[0m\u001b[1mhelp\u001b[0m: the following other types implement trait `HttpServiceFactory`:\n (A, B)\n (A, B, C)\n (A, B, C, D)\n (A, B, C, D, E)\n (A, B, C, D, E, F)\n (A, B, C, D, E, F, G)\n (A, B, C, D, E, F, G, H)\n (A, B, C, D, E, F, G, H, I)\n and 10 others\n\u001b[1m\u001b[92mnote\u001b[0m: required by a bound in `actix_web::Scope::<T>::service`\n \u001b[1m\u001b[94m--> \u001b[0m/home/z/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/actix-web-4.13.0/src/scope.rs:234:12\n \u001b[1m\u001b[94m|\u001b[0m\n\u001b[1m\u001b[94m232\u001b[0m \u001b[1m\u001b[94m|\u001b[0m pub fn service<F>(mut self, factory: F) -> Self\n \u001b[1m\u001b[94m|\u001b[0m \u001b[1m\u001b[94m-------\u001b[0m \u001b[1m\u001b[94mrequired by a bound in this associated function\u001b[0m\n\u001b[1m\u001b[94m233\u001b[0m \u001b[1m\u001b[94m|\u001b[0m where\n\u001b[1m\u001b[94m234\u001b[0m \u001b[1m\u001b[94m|\u001b[0m F: HttpServiceFactory + 'static,\n \u001b[1m\u001b[94m|\u001b[0m \u001b[1m\u001b[92m^^^^^^^^^^^^^^^^^^\u001b[0m \u001b[1m\u001b[92mrequired by this bound in `Scope::<T>::service`\u001b[0m\n \u001b[1m\u001b[94m= \u001b[0m\u001b[1mnote\u001b[0m: the full name for the type has been written to '/home/z/my-project/projects/server/target/debug/deps/butterfly_server-44a930d20c6d99e6.long-type-2803338379466717253.txt'\n \u001b[1m\u001b[94m= \u001b[0m\u001b[1mnote\u001b[0m: consider using `--verbose` to print the full type name to the console\n\n"}
{"$message_type":"diagnostic","message":"the trait bound `fn(Data<Arc<AppState>>) -> ... {list_sessions}: HttpServiceFactory` is not satisfied","code":{"code":"E0277","explanation":"You tried to use a type which doesn't implement some trait in a place which\nexpected that trait.\n\nErroneous code example:\n\n```compile_fail,E0277\n// here we declare the Foo trait with a bar method\ntrait Foo {\n fn bar(&self);\n}\n\n// we now declare a function which takes an object implementing the Foo trait\nfn some_func<T: Foo>(foo: T) {\n foo.bar();\n}\n\nfn main() {\n // we now call the method with the i32 type, which doesn't implement\n // the Foo trait\n some_func(5i32); // error: the trait bound `i32 : Foo` is not satisfied\n}\n```\n\nIn order to fix this error, verify that the type you're using does implement\nthe trait. Example:\n\n```\ntrait Foo {\n fn bar(&self);\n}\n\n// we implement the trait on the i32 type\nimpl Foo for i32 {\n fn bar(&self) {}\n}\n\nfn some_func<T: Foo>(foo: T) {\n foo.bar(); // we can now use this method since i32 implements the\n // Foo trait\n}\n\nfn main() {\n some_func(5i32); // ok!\n}\n```\n\nOr in a generic context, an erroneous code example would look like:\n\n```compile_fail,E0277\nfn some_func<T>(foo: T) {\n println!(\"{:?}\", foo); // error: the trait `core::fmt::Debug` is not\n // implemented for the type `T`\n}\n\nfn main() {\n // We now call the method with the i32 type,\n // which *does* implement the Debug trait.\n some_func(5i32);\n}\n```\n\nNote that the error here is in the definition of the generic function. Although\nwe only call it with a parameter that does implement `Debug`, the compiler\nstill rejects the function. It must work with all possible input types. In\norder to make this example compile, we need to restrict the generic type we're\naccepting:\n\n```\nuse std::fmt;\n\n// Restrict the input type to types that implement Debug.\nfn some_func<T: fmt::Debug>(foo: T) {\n println!(\"{:?}\", foo);\n}\n\nfn main() {\n // Calling the method is still fine, as i32 implements Debug.\n some_func(5i32);\n\n // This would fail to compile now:\n // struct WithoutDebug;\n // some_func(WithoutDebug);\n}\n```\n\nRust only looks at the signature of the called function, as such it must\nalready specify all requirements that will be used for every type parameter.\n"},"level":"error","spans":[{"file_name":"src/api/mod.rs","byte_start":253,"byte_end":276,"line_start":11,"line_end":11,"column_start":22,"column_end":45,"is_primary":true,"text":[{"text":" .service(sessions::list_sessions)","highlight_start":22,"highlight_end":45}],"label":"the trait `HttpServiceFactory` is not implemented for fn item `fn(Data<Arc<AppState>>) -> impl Future<Output = ...> {list_sessions}`","suggested_replacement":null,"suggestion_applicability":null,"expansion":null},{"file_name":"src/api/mod.rs","byte_start":245,"byte_end":252,"line_start":11,"line_end":11,"column_start":14,"column_end":21,"is_primary":false,"text":[{"text":" .service(sessions::list_sessions)","highlight_start":14,"highlight_end":21}],"label":"required by a bound introduced by this call","suggested_replacement":null,"suggestion_applicability":null,"expansion":null}],"children":[{"message":"the following other types implement trait `HttpServiceFactory`:\n (A, B)\n (A, B, C)\n (A, B, C, D)\n (A, B, C, D, E)\n (A, B, C, D, E, F)\n (A, B, C, D, E, F, G)\n (A, B, C, D, E, F, G, H)\n (A, B, C, D, E, F, G, H, I)\nand 10 others","code":null,"level":"help","spans":[],"children":[],"rendered":null},{"message":"required by a bound in `actix_web::Scope::<T>::service`","code":null,"level":"note","spans":[{"file_name":"/home/z/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/actix-web-4.13.0/src/scope.rs","byte_start":7773,"byte_end":7780,"line_start":232,"line_end":232,"column_start":12,"column_end":19,"is_primary":false,"text":[{"text":" pub fn service<F>(mut self, factory: F) -> Self","highlight_start":12,"highlight_end":19}],"label":"required by a bound in this associated function","suggested_replacement":null,"suggestion_applicability":null,"expansion":null},{"file_name":"/home/z/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/actix-web-4.13.0/src/scope.rs","byte_start":7835,"byte_end":7853,"line_start":234,"line_end":234,"column_start":12,"column_end":30,"is_primary":true,"text":[{"text":" F: HttpServiceFactory + 'static,","highlight_start":12,"highlight_end":30}],"label":"required by this bound in `Scope::<T>::service`","suggested_replacement":null,"suggestion_applicability":null,"expansion":null}],"children":[],"rendered":null},{"message":"the full name for the type has been written to '/home/z/my-project/projects/server/target/debug/deps/butterfly_server-44a930d20c6d99e6.long-type-2609923016590404324.txt'","code":null,"level":"note","spans":[],"children":[],"rendered":null},{"message":"consider using `--verbose` to print the full type name to the console","code":null,"level":"note","spans":[],"children":[],"rendered":null}],"rendered":"\u001b[1m\u001b[91merror[E0277]\u001b[0m\u001b[1m: the trait bound `fn(Data<Arc<AppState>>) -> ... {list_sessions}: HttpServiceFactory` is not satisfied\u001b[0m\n \u001b[1m\u001b[94m--> \u001b[0msrc/api/mod.rs:11:22\n \u001b[1m\u001b[94m|\u001b[0m\n\u001b[1m\u001b[94m 11\u001b[0m \u001b[1m\u001b[94m|\u001b[0m .service(sessions::list_sessions)\n \u001b[1m\u001b[94m|\u001b[0m \u001b[1m\u001b[94m-------\u001b[0m \u001b[1m\u001b[91m^^^^^^^^^^^^^^^^^^^^^^^\u001b[0m \u001b[1m\u001b[91mthe trait `HttpServiceFactory` is not implemented for fn item `fn(Data<Arc<AppState>>) -> impl Future<Output = ...> {list_sessions}`\u001b[0m\n \u001b[1m\u001b[94m|\u001b[0m \u001b[1m\u001b[94m|\u001b[0m\n \u001b[1m\u001b[94m|\u001b[0m \u001b[1m\u001b[94mrequired by a bound introduced by this call\u001b[0m\n \u001b[1m\u001b[94m|\u001b[0m\n \u001b[1m\u001b[94m= \u001b[0m\u001b[1mhelp\u001b[0m: the following other types implement trait `HttpServiceFactory`:\n (A, B)\n (A, B, C)\n (A, B, C, D)\n (A, B, C, D, E)\n (A, B, C, D, E, F)\n (A, B, C, D, E, F, G)\n (A, B, C, D, E, F, G, H)\n (A, B, C, D, E, F, G, H, I)\n and 10 others\n\u001b[1m\u001b[92mnote\u001b[0m: required by a bound in `actix_web::Scope::<T>::service`\n \u001b[1m\u001b[94m--> \u001b[0m/home/z/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/actix-web-4.13.0/src/scope.rs:234:12\n \u001b[1m\u001b[94m|\u001b[0m\n\u001b[1m\u001b[94m232\u001b[0m \u001b[1m\u001b[94m|\u001b[0m pub fn service<F>(mut self, factory: F) -> Self\n \u001b[1m\u001b[94m|\u001b[0m \u001b[1m\u001b[94m-------\u001b[0m \u001b[1m\u001b[94mrequired by a bound in this associated function\u001b[0m\n\u001b[1m\u001b[94m233\u001b[0m \u001b[1m\u001b[94m|\u001b[0m where\n\u001b[1m\u001b[94m234\u001b[0m \u001b[1m\u001b[94m|\u001b[0m F: HttpServiceFactory + 'static,\n \u001b[1m\u001b[94m|\u001b[0m \u001b[1m\u001b[92m^^^^^^^^^^^^^^^^^^\u001b[0m \u001b[1m\u001b[92mrequired by this bound in `Scope::<T>::service`\u001b[0m\n \u001b[1m\u001b[94m= \u001b[0m\u001b[1mnote\u001b[0m: the full name for the type has been written to '/home/z/my-project/projects/server/target/debug/deps/butterfly_server-44a930d20c6d99e6.long-type-2609923016590404324.txt'\n \u001b[1m\u001b[94m= \u001b[0m\u001b[1mnote\u001b[0m: consider using `--verbose` to print the full type name to the console\n\n"}
{"$message_type":"diagnostic","message":"the trait bound `fn(Data<Arc<AppState>>) -> ... {create_session}: HttpServiceFactory` is not satisfied","code":{"code":"E0277","explanation":"You tried to use a type which doesn't implement some trait in a place which\nexpected that trait.\n\nErroneous code example:\n\n```compile_fail,E0277\n// here we declare the Foo trait with a bar method\ntrait Foo {\n fn bar(&self);\n}\n\n// we now declare a function which takes an object implementing the Foo trait\nfn some_func<T: Foo>(foo: T) {\n foo.bar();\n}\n\nfn main() {\n // we now call the method with the i32 type, which doesn't implement\n // the Foo trait\n some_func(5i32); // error: the trait bound `i32 : Foo` is not satisfied\n}\n```\n\nIn order to fix this error, verify that the type you're using does implement\nthe trait. Example:\n\n```\ntrait Foo {\n fn bar(&self);\n}\n\n// we implement the trait on the i32 type\nimpl Foo for i32 {\n fn bar(&self) {}\n}\n\nfn some_func<T: Foo>(foo: T) {\n foo.bar(); // we can now use this method since i32 implements the\n // Foo trait\n}\n\nfn main() {\n some_func(5i32); // ok!\n}\n```\n\nOr in a generic context, an erroneous code example would look like:\n\n```compile_fail,E0277\nfn some_func<T>(foo: T) {\n println!(\"{:?}\", foo); // error: the trait `core::fmt::Debug` is not\n // implemented for the type `T`\n}\n\nfn main() {\n // We now call the method with the i32 type,\n // which *does* implement the Debug trait.\n some_func(5i32);\n}\n```\n\nNote that the error here is in the definition of the generic function. Although\nwe only call it with a parameter that does implement `Debug`, the compiler\nstill rejects the function. It must work with all possible input types. In\norder to make this example compile, we need to restrict the generic type we're\naccepting:\n\n```\nuse std::fmt;\n\n// Restrict the input type to types that implement Debug.\nfn some_func<T: fmt::Debug>(foo: T) {\n println!(\"{:?}\", foo);\n}\n\nfn main() {\n // Calling the method is still fine, as i32 implements Debug.\n some_func(5i32);\n\n // This would fail to compile now:\n // struct WithoutDebug;\n // some_func(WithoutDebug);\n}\n```\n\nRust only looks at the signature of the called function, as such it must\nalready specify all requirements that will be used for every type parameter.\n"},"level":"error","spans":[{"file_name":"src/api/mod.rs","byte_start":299,"byte_end":323,"line_start":12,"line_end":12,"column_start":22,"column_end":46,"is_primary":true,"text":[{"text":" .service(sessions::create_session)","highlight_start":22,"highlight_end":46}],"label":"the trait `HttpServiceFactory` is not implemented for fn item `fn(Data<Arc<AppState>>) -> impl Future<Output = ...> {create_session}`","suggested_replacement":null,"suggestion_applicability":null,"expansion":null},{"file_name":"src/api/mod.rs","byte_start":291,"byte_end":298,"line_start":12,"line_end":12,"column_start":14,"column_end":21,"is_primary":false,"text":[{"text":" .service(sessions::create_session)","highlight_start":14,"highlight_end":21}],"label":"required by a bound introduced by this call","suggested_replacement":null,"suggestion_applicability":null,"expansion":null}],"children":[{"message":"the following other types implement trait `HttpServiceFactory`:\n (A, B)\n (A, B, C)\n (A, B, C, D)\n (A, B, C, D, E)\n (A, B, C, D, E, F)\n (A, B, C, D, E, F, G)\n (A, B, C, D, E, F, G, H)\n (A, B, C, D, E, F, G, H, I)\nand 10 others","code":null,"level":"help","spans":[],"children":[],"rendered":null},{"message":"required by a bound in `actix_web::Scope::<T>::service`","code":null,"level":"note","spans":[{"file_name":"/home/z/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/actix-web-4.13.0/src/scope.rs","byte_start":7773,"byte_end":7780,"line_start":232,"line_end":232,"column_start":12,"column_end":19,"is_primary":false,"text":[{"text":" pub fn service<F>(mut self, factory: F) -> Self","highlight_start":12,"highlight_end":19}],"label":"required by a bound in this associated function","suggested_replacement":null,"suggestion_applicability":null,"expansion":null},{"file_name":"/home/z/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/actix-web-4.13.0/src/scope.rs","byte_start":7835,"byte_end":7853,"line_start":234,"line_end":234,"column_start":12,"column_end":30,"is_primary":true,"text":[{"text":" F: HttpServiceFactory + 'static,","highlight_start":12,"highlight_end":30}],"label":"required by this bound in `Scope::<T>::service`","suggested_replacement":null,"suggestion_applicability":null,"expansion":null}],"children":[],"rendered":null},{"message":"the full name for the type has been written to '/home/z/my-project/projects/server/target/debug/deps/butterfly_server-44a930d20c6d99e6.long-type-15422885921286665779.txt'","code":null,"level":"note","spans":[],"children":[],"rendered":null},{"message":"consider using `--verbose` to print the full type name to the console","code":null,"level":"note","spans":[],"children":[],"rendered":null}],"rendered":"\u001b[1m\u001b[91merror[E0277]\u001b[0m\u001b[1m: the trait bound `fn(Data<Arc<AppState>>) -> ... {create_session}: HttpServiceFactory` is not satisfied\u001b[0m\n \u001b[1m\u001b[94m--> \u001b[0msrc/api/mod.rs:12:22\n \u001b[1m\u001b[94m|\u001b[0m\n\u001b[1m\u001b[94m 12\u001b[0m \u001b[1m\u001b[94m|\u001b[0m .service(sessions::create_session)\n \u001b[1m\u001b[94m|\u001b[0m \u001b[1m\u001b[94m-------\u001b[0m \u001b[1m\u001b[91m^^^^^^^^^^^^^^^^^^^^^^^^\u001b[0m \u001b[1m\u001b[91mthe trait `HttpServiceFactory` is not implemented for fn item `fn(Data<Arc<AppState>>) -> impl Future<Output = ...> {create_session}`\u001b[0m\n \u001b[1m\u001b[94m|\u001b[0m \u001b[1m\u001b[94m|\u001b[0m\n \u001b[1m\u001b[94m|\u001b[0m \u001b[1m\u001b[94mrequired by a bound introduced by this call\u001b[0m\n \u001b[1m\u001b[94m|\u001b[0m\n \u001b[1m\u001b[94m= \u001b[0m\u001b[1mhelp\u001b[0m: the following other types implement trait `HttpServiceFactory`:\n (A, B)\n (A, B, C)\n (A, B, C, D)\n (A, B, C, D, E)\n (A, B, C, D, E, F)\n (A, B, C, D, E, F, G)\n (A, B, C, D, E, F, G, H)\n (A, B, C, D, E, F, G, H, I)\n and 10 others\n\u001b[1m\u001b[92mnote\u001b[0m: required by a bound in `actix_web::Scope::<T>::service`\n \u001b[1m\u001b[94m--> \u001b[0m/home/z/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/actix-web-4.13.0/src/scope.rs:234:12\n \u001b[1m\u001b[94m|\u001b[0m\n\u001b[1m\u001b[94m232\u001b[0m \u001b[1m\u001b[94m|\u001b[0m pub fn service<F>(mut self, factory: F) -> Self\n \u001b[1m\u001b[94m|\u001b[0m \u001b[1m\u001b[94m-------\u001b[0m \u001b[1m\u001b[94mrequired by a bound in this associated function\u001b[0m\n\u001b[1m\u001b[94m233\u001b[0m \u001b[1m\u001b[94m|\u001b[0m where\n\u001b[1m\u001b[94m234\u001b[0m \u001b[1m\u001b[94m|\u001b[0m F: HttpServiceFactory + 'static,\n \u001b[1m\u001b[94m|\u001b[0m \u001b[1m\u001b[92m^^^^^^^^^^^^^^^^^^\u001b[0m \u001b[1m\u001b[92mrequired by this bound in `Scope::<T>::service`\u001b[0m\n \u001b[1m\u001b[94m= \u001b[0m\u001b[1mnote\u001b[0m: the full name for the type has been written to '/home/z/my-project/projects/server/target/debug/deps/butterfly_server-44a930d20c6d99e6.long-type-15422885921286665779.txt'\n \u001b[1m\u001b[94m= \u001b[0m\u001b[1mnote\u001b[0m: consider using `--verbose` to print the full type name to the console\n\n"}
{"$message_type":"diagnostic","message":"the trait bound `fn(Data<Arc<AppState>>, ...) -> ... {get_session}: HttpServiceFactory` is not satisfied","code":{"code":"E0277","explanation":"You tried to use a type which doesn't implement some trait in a place which\nexpected that trait.\n\nErroneous code example:\n\n```compile_fail,E0277\n// here we declare the Foo trait with a bar method\ntrait Foo {\n fn bar(&self);\n}\n\n// we now declare a function which takes an object implementing the Foo trait\nfn some_func<T: Foo>(foo: T) {\n foo.bar();\n}\n\nfn main() {\n // we now call the method with the i32 type, which doesn't implement\n // the Foo trait\n some_func(5i32); // error: the trait bound `i32 : Foo` is not satisfied\n}\n```\n\nIn order to fix this error, verify that the type you're using does implement\nthe trait. Example:\n\n```\ntrait Foo {\n fn bar(&self);\n}\n\n// we implement the trait on the i32 type\nimpl Foo for i32 {\n fn bar(&self) {}\n}\n\nfn some_func<T: Foo>(foo: T) {\n foo.bar(); // we can now use this method since i32 implements the\n // Foo trait\n}\n\nfn main() {\n some_func(5i32); // ok!\n}\n```\n\nOr in a generic context, an erroneous code example would look like:\n\n```compile_fail,E0277\nfn some_func<T>(foo: T) {\n println!(\"{:?}\", foo); // error: the trait `core::fmt::Debug` is not\n // implemented for the type `T`\n}\n\nfn main() {\n // We now call the method with the i32 type,\n // which *does* implement the Debug trait.\n some_func(5i32);\n}\n```\n\nNote that the error here is in the definition of the generic function. Although\nwe only call it with a parameter that does implement `Debug`, the compiler\nstill rejects the function. It must work with all possible input types. In\norder to make this example compile, we need to restrict the generic type we're\naccepting:\n\n```\nuse std::fmt;\n\n// Restrict the input type to types that implement Debug.\nfn some_func<T: fmt::Debug>(foo: T) {\n println!(\"{:?}\", foo);\n}\n\nfn main() {\n // Calling the method is still fine, as i32 implements Debug.\n some_func(5i32);\n\n // This would fail to compile now:\n // struct WithoutDebug;\n // some_func(WithoutDebug);\n}\n```\n\nRust only looks at the signature of the called function, as such it must\nalready specify all requirements that will be used for every type parameter.\n"},"level":"error","spans":[{"file_name":"src/api/mod.rs","byte_start":346,"byte_end":367,"line_start":13,"line_end":13,"column_start":22,"column_end":43,"is_primary":true,"text":[{"text":" .service(sessions::get_session)","highlight_start":22,"highlight_end":43}],"label":"the trait `HttpServiceFactory` is not implemented for fn item `fn(Data<Arc<AppState>>, Path<String>) -> ... {get_session}`","suggested_replacement":null,"suggestion_applicability":null,"expansion":null},{"file_name":"src/api/mod.rs","byte_start":338,"byte_end":345,"line_start":13,"line_end":13,"column_start":14,"column_end":21,"is_primary":false,"text":[{"text":" .service(sessions::get_session)","highlight_start":14,"highlight_end":21}],"label":"required by a bound introduced by this call","suggested_replacement":null,"suggestion_applicability":null,"expansion":null}],"children":[{"message":"the following other types implement trait `HttpServiceFactory`:\n (A, B)\n (A, B, C)\n (A, B, C, D)\n (A, B, C, D, E)\n (A, B, C, D, E, F)\n (A, B, C, D, E, F, G)\n (A, B, C, D, E, F, G, H)\n (A, B, C, D, E, F, G, H, I)\nand 10 others","code":null,"level":"help","spans":[],"children":[],"rendered":null},{"message":"required by a bound in `actix_web::Scope::<T>::service`","code":null,"level":"note","spans":[{"file_name":"/home/z/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/actix-web-4.13.0/src/scope.rs","byte_start":7773,"byte_end":7780,"line_start":232,"line_end":232,"column_start":12,"column_end":19,"is_primary":false,"text":[{"text":" pub fn service<F>(mut self, factory: F) -> Self","highlight_start":12,"highlight_end":19}],"label":"required by a bound in this associated function","suggested_replacement":null,"suggestion_applicability":null,"expansion":null},{"file_name":"/home/z/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/actix-web-4.13.0/src/scope.rs","byte_start":7835,"byte_end":7853,"line_start":234,"line_end":234,"column_start":12,"column_end":30,"is_primary":true,"text":[{"text":" F: HttpServiceFactory + 'static,","highlight_start":12,"highlight_end":30}],"label":"required by this bound in `Scope::<T>::service`","suggested_replacement":null,"suggestion_applicability":null,"expansion":null}],"children":[],"rendered":null},{"message":"the full name for the type has been written to '/home/z/my-project/projects/server/target/debug/deps/butterfly_server-44a930d20c6d99e6.long-type-5810549072949164016.txt'","code":null,"level":"note","spans":[],"children":[],"rendered":null},{"message":"consider using `--verbose` to print the full type name to the console","code":null,"level":"note","spans":[],"children":[],"rendered":null}],"rendered":"\u001b[1m\u001b[91merror[E0277]\u001b[0m\u001b[1m: the trait bound `fn(Data<Arc<AppState>>, ...) -> ... {get_session}: HttpServiceFactory` is not satisfied\u001b[0m\n \u001b[1m\u001b[94m--> \u001b[0msrc/api/mod.rs:13:22\n \u001b[1m\u001b[94m|\u001b[0m\n\u001b[1m\u001b[94m 13\u001b[0m \u001b[1m\u001b[94m|\u001b[0m .service(sessions::get_session)\n \u001b[1m\u001b[94m|\u001b[0m \u001b[1m\u001b[94m-------\u001b[0m \u001b[1m\u001b[91m^^^^^^^^^^^^^^^^^^^^^\u001b[0m \u001b[1m\u001b[91mthe trait `HttpServiceFactory` is not implemented for fn item `fn(Data<Arc<AppState>>, Path<String>) -> ... {get_session}`\u001b[0m\n \u001b[1m\u001b[94m|\u001b[0m \u001b[1m\u001b[94m|\u001b[0m\n \u001b[1m\u001b[94m|\u001b[0m \u001b[1m\u001b[94mrequired by a bound introduced by this call\u001b[0m\n \u001b[1m\u001b[94m|\u001b[0m\n \u001b[1m\u001b[94m= \u001b[0m\u001b[1mhelp\u001b[0m: the following other types implement trait `HttpServiceFactory`:\n (A, B)\n (A, B, C)\n (A, B, C, D)\n (A, B, C, D, E)\n (A, B, C, D, E, F)\n (A, B, C, D, E, F, G)\n (A, B, C, D, E, F, G, H)\n (A, B, C, D, E, F, G, H, I)\n and 10 others\n\u001b[1m\u001b[92mnote\u001b[0m: required by a bound in `actix_web::Scope::<T>::service`\n \u001b[1m\u001b[94m--> \u001b[0m/home/z/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/actix-web-4.13.0/src/scope.rs:234:12\n \u001b[1m\u001b[94m|\u001b[0m\n\u001b[1m\u001b[94m232\u001b[0m \u001b[1m\u001b[94m|\u001b[0m pub fn service<F>(mut self, factory: F) -> Self\n \u001b[1m\u001b[94m|\u001b[0m \u001b[1m\u001b[94m-------\u001b[0m \u001b[1m\u001b[94mrequired by a bound in this associated function\u001b[0m\n\u001b[1m\u001b[94m233\u001b[0m \u001b[1m\u001b[94m|\u001b[0m where\n\u001b[1m\u001b[94m234\u001b[0m \u001b[1m\u001b[94m|\u001b[0m F: HttpServiceFactory + 'static,\n \u001b[1m\u001b[94m|\u001b[0m \u001b[1m\u001b[92m^^^^^^^^^^^^^^^^^^\u001b[0m \u001b[1m\u001b[92mrequired by this bound in `Scope::<T>::service`\u001b[0m\n \u001b[1m\u001b[94m= \u001b[0m\u001b[1mnote\u001b[0m: the full name for the type has been written to '/home/z/my-project/projects/server/target/debug/deps/butterfly_server-44a930d20c6d99e6.long-type-5810549072949164016.txt'\n \u001b[1m\u001b[94m= \u001b[0m\u001b[1mnote\u001b[0m: consider using `--verbose` to print the full type name to the console\n\n"}
{"$message_type":"diagnostic","message":"the trait bound `fn(Data<Arc<...>>, ...) -> ... {delete_session}: HttpServiceFactory` is not satisfied","code":{"code":"E0277","explanation":"You tried to use a type which doesn't implement some trait in a place which\nexpected that trait.\n\nErroneous code example:\n\n```compile_fail,E0277\n// here we declare the Foo trait with a bar method\ntrait Foo {\n fn bar(&self);\n}\n\n// we now declare a function which takes an object implementing the Foo trait\nfn some_func<T: Foo>(foo: T) {\n foo.bar();\n}\n\nfn main() {\n // we now call the method with the i32 type, which doesn't implement\n // the Foo trait\n some_func(5i32); // error: the trait bound `i32 : Foo` is not satisfied\n}\n```\n\nIn order to fix this error, verify that the type you're using does implement\nthe trait. Example:\n\n```\ntrait Foo {\n fn bar(&self);\n}\n\n// we implement the trait on the i32 type\nimpl Foo for i32 {\n fn bar(&self) {}\n}\n\nfn some_func<T: Foo>(foo: T) {\n foo.bar(); // we can now use this method since i32 implements the\n // Foo trait\n}\n\nfn main() {\n some_func(5i32); // ok!\n}\n```\n\nOr in a generic context, an erroneous code example would look like:\n\n```compile_fail,E0277\nfn some_func<T>(foo: T) {\n println!(\"{:?}\", foo); // error: the trait `core::fmt::Debug` is not\n // implemented for the type `T`\n}\n\nfn main() {\n // We now call the method with the i32 type,\n // which *does* implement the Debug trait.\n some_func(5i32);\n}\n```\n\nNote that the error here is in the definition of the generic function. Although\nwe only call it with a parameter that does implement `Debug`, the compiler\nstill rejects the function. It must work with all possible input types. In\norder to make this example compile, we need to restrict the generic type we're\naccepting:\n\n```\nuse std::fmt;\n\n// Restrict the input type to types that implement Debug.\nfn some_func<T: fmt::Debug>(foo: T) {\n println!(\"{:?}\", foo);\n}\n\nfn main() {\n // Calling the method is still fine, as i32 implements Debug.\n some_func(5i32);\n\n // This would fail to compile now:\n // struct WithoutDebug;\n // some_func(WithoutDebug);\n}\n```\n\nRust only looks at the signature of the called function, as such it must\nalready specify all requirements that will be used for every type parameter.\n"},"level":"error","spans":[{"file_name":"src/api/mod.rs","byte_start":390,"byte_end":414,"line_start":14,"line_end":14,"column_start":22,"column_end":46,"is_primary":true,"text":[{"text":" .service(sessions::delete_session)","highlight_start":22,"highlight_end":46}],"label":"the trait `HttpServiceFactory` is not implemented for fn item `fn(Data<Arc<AppState>>, Path<String>) -> ... {delete_session}`","suggested_replacement":null,"suggestion_applicability":null,"expansion":null},{"file_name":"src/api/mod.rs","byte_start":382,"byte_end":389,"line_start":14,"line_end":14,"column_start":14,"column_end":21,"is_primary":false,"text":[{"text":" .service(sessions::delete_session)","highlight_start":14,"highlight_end":21}],"label":"required by a bound introduced by this call","suggested_replacement":null,"suggestion_applicability":null,"expansion":null}],"children":[{"message":"the following other types implement trait `HttpServiceFactory`:\n (A, B)\n (A, B, C)\n (A, B, C, D)\n (A, B, C, D, E)\n (A, B, C, D, E, F)\n (A, B, C, D, E, F, G)\n (A, B, C, D, E, F, G, H)\n (A, B, C, D, E, F, G, H, I)\nand 10 others","code":null,"level":"help","spans":[],"children":[],"rendered":null},{"message":"required by a bound in `actix_web::Scope::<T>::service`","code":null,"level":"note","spans":[{"file_name":"/home/z/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/actix-web-4.13.0/src/scope.rs","byte_start":7773,"byte_end":7780,"line_start":232,"line_end":232,"column_start":12,"column_end":19,"is_primary":false,"text":[{"text":" pub fn service<F>(mut self, factory: F) -> Self","highlight_start":12,"highlight_end":19}],"label":"required by a bound in this associated function","suggested_replacement":null,"suggestion_applicability":null,"expansion":null},{"file_name":"/home/z/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/actix-web-4.13.0/src/scope.rs","byte_start":7835,"byte_end":7853,"line_start":234,"line_end":234,"column_start":12,"column_end":30,"is_primary":true,"text":[{"text":" F: HttpServiceFactory + 'static,","highlight_start":12,"highlight_end":30}],"label":"required by this bound in `Scope::<T>::service`","suggested_replacement":null,"suggestion_applicability":null,"expansion":null}],"children":[],"rendered":null},{"message":"the full name for the type has been written to '/home/z/my-project/projects/server/target/debug/deps/butterfly_server-44a930d20c6d99e6.long-type-1533165293553270266.txt'","code":null,"level":"note","spans":[],"children":[],"rendered":null},{"message":"consider using `--verbose` to print the full type name to the console","code":null,"level":"note","spans":[],"children":[],"rendered":null}],"rendered":"\u001b[1m\u001b[91merror[E0277]\u001b[0m\u001b[1m: the trait bound `fn(Data<Arc<...>>, ...) -> ... {delete_session}: HttpServiceFactory` is not satisfied\u001b[0m\n \u001b[1m\u001b[94m--> \u001b[0msrc/api/mod.rs:14:22\n \u001b[1m\u001b[94m|\u001b[0m\n\u001b[1m\u001b[94m 14\u001b[0m \u001b[1m\u001b[94m|\u001b[0m .service(sessions::delete_session)\n \u001b[1m\u001b[94m|\u001b[0m \u001b[1m\u001b[94m-------\u001b[0m \u001b[1m\u001b[91m^^^^^^^^^^^^^^^^^^^^^^^^\u001b[0m \u001b[1m\u001b[91mthe trait `HttpServiceFactory` is not implemented for fn item `fn(Data<Arc<AppState>>, Path<String>) -> ... {delete_session}`\u001b[0m\n \u001b[1m\u001b[94m|\u001b[0m \u001b[1m\u001b[94m|\u001b[0m\n \u001b[1m\u001b[94m|\u001b[0m \u001b[1m\u001b[94mrequired by a bound introduced by this call\u001b[0m\n \u001b[1m\u001b[94m|\u001b[0m\n \u001b[1m\u001b[94m= \u001b[0m\u001b[1mhelp\u001b[0m: the following other types implement trait `HttpServiceFactory`:\n (A, B)\n (A, B, C)\n (A, B, C, D)\n (A, B, C, D, E)\n (A, B, C, D, E, F)\n (A, B, C, D, E, F, G)\n (A, B, C, D, E, F, G, H)\n (A, B, C, D, E, F, G, H, I)\n and 10 others\n\u001b[1m\u001b[92mnote\u001b[0m: required by a bound in `actix_web::Scope::<T>::service`\n \u001b[1m\u001b[94m--> \u001b[0m/home/z/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/actix-web-4.13.0/src/scope.rs:234:12\n \u001b[1m\u001b[94m|\u001b[0m\n\u001b[1m\u001b[94m232\u001b[0m \u001b[1m\u001b[94m|\u001b[0m pub fn service<F>(mut self, factory: F) -> Self\n \u001b[1m\u001b[94m|\u001b[0m \u001b[1m\u001b[94m-------\u001b[0m \u001b[1m\u001b[94mrequired by a bound in this associated function\u001b[0m\n\u001b[1m\u001b[94m233\u001b[0m \u001b[1m\u001b[94m|\u001b[0m where\n\u001b[1m\u001b[94m234\u001b[0m \u001b[1m\u001b[94m|\u001b[0m F: HttpServiceFactory + 'static,\n \u001b[1m\u001b[94m|\u001b[0m \u001b[1m\u001b[92m^^^^^^^^^^^^^^^^^^\u001b[0m \u001b[1m\u001b[92mrequired by this bound in `Scope::<T>::service`\u001b[0m\n \u001b[1m\u001b[94m= \u001b[0m\u001b[1mnote\u001b[0m: the full name for the type has been written to '/home/z/my-project/projects/server/target/debug/deps/butterfly_server-44a930d20c6d99e6.long-type-1533165293553270266.txt'\n \u001b[1m\u001b[94m= \u001b[0m\u001b[1mnote\u001b[0m: consider using `--verbose` to print the full type name to the console\n\n"}
{"$message_type":"diagnostic","message":"the trait bound `fn(Data<...>, ..., ...) -> ... {send_hud_command}: HttpServiceFactory` is not satisfied","code":{"code":"E0277","explanation":"You tried to use a type which doesn't implement some trait in a place which\nexpected that trait.\n\nErroneous code example:\n\n```compile_fail,E0277\n// here we declare the Foo trait with a bar method\ntrait Foo {\n fn bar(&self);\n}\n\n// we now declare a function which takes an object implementing the Foo trait\nfn some_func<T: Foo>(foo: T) {\n foo.bar();\n}\n\nfn main() {\n // we now call the method with the i32 type, which doesn't implement\n // the Foo trait\n some_func(5i32); // error: the trait bound `i32 : Foo` is not satisfied\n}\n```\n\nIn order to fix this error, verify that the type you're using does implement\nthe trait. Example:\n\n```\ntrait Foo {\n fn bar(&self);\n}\n\n// we implement the trait on the i32 type\nimpl Foo for i32 {\n fn bar(&self) {}\n}\n\nfn some_func<T: Foo>(foo: T) {\n foo.bar(); // we can now use this method since i32 implements the\n // Foo trait\n}\n\nfn main() {\n some_func(5i32); // ok!\n}\n```\n\nOr in a generic context, an erroneous code example would look like:\n\n```compile_fail,E0277\nfn some_func<T>(foo: T) {\n println!(\"{:?}\", foo); // error: the trait `core::fmt::Debug` is not\n // implemented for the type `T`\n}\n\nfn main() {\n // We now call the method with the i32 type,\n // which *does* implement the Debug trait.\n some_func(5i32);\n}\n```\n\nNote that the error here is in the definition of the generic function. Although\nwe only call it with a parameter that does implement `Debug`, the compiler\nstill rejects the function. It must work with all possible input types. In\norder to make this example compile, we need to restrict the generic type we're\naccepting:\n\n```\nuse std::fmt;\n\n// Restrict the input type to types that implement Debug.\nfn some_func<T: fmt::Debug>(foo: T) {\n println!(\"{:?}\", foo);\n}\n\nfn main() {\n // Calling the method is still fine, as i32 implements Debug.\n some_func(5i32);\n\n // This would fail to compile now:\n // struct WithoutDebug;\n // some_func(WithoutDebug);\n}\n```\n\nRust only looks at the signature of the called function, as such it must\nalready specify all requirements that will be used for every type parameter.\n"},"level":"error","spans":[{"file_name":"src/api/mod.rs","byte_start":437,"byte_end":463,"line_start":15,"line_end":15,"column_start":22,"column_end":48,"is_primary":true,"text":[{"text":" .service(sessions::send_hud_command),","highlight_start":22,"highlight_end":48}],"label":"the trait `HttpServiceFactory` is not implemented for fn item `fn(Data<Arc<AppState>>, Path<String>, ...) -> ... {send_hud_command}`","suggested_replacement":null,"suggestion_applicability":null,"expansion":null},{"file_name":"src/api/mod.rs","byte_start":429,"byte_end":436,"line_start":15,"line_end":15,"column_start":14,"column_end":21,"is_primary":false,"text":[{"text":" .service(sessions::send_hud_command),","highlight_start":14,"highlight_end":21}],"label":"required by a bound introduced by this call","suggested_replacement":null,"suggestion_applicability":null,"expansion":null}],"children":[{"message":"the following other types implement trait `HttpServiceFactory`:\n (A, B)\n (A, B, C)\n (A, B, C, D)\n (A, B, C, D, E)\n (A, B, C, D, E, F)\n (A, B, C, D, E, F, G)\n (A, B, C, D, E, F, G, H)\n (A, B, C, D, E, F, G, H, I)\nand 10 others","code":null,"level":"help","spans":[],"children":[],"rendered":null},{"message":"required by a bound in `actix_web::Scope::<T>::service`","code":null,"level":"note","spans":[{"file_name":"/home/z/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/actix-web-4.13.0/src/scope.rs","byte_start":7773,"byte_end":7780,"line_start":232,"line_end":232,"column_start":12,"column_end":19,"is_primary":false,"text":[{"text":" pub fn service<F>(mut self, factory: F) -> Self","highlight_start":12,"highlight_end":19}],"label":"required by a bound in this associated function","suggested_replacement":null,"suggestion_applicability":null,"expansion":null},{"file_name":"/home/z/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/actix-web-4.13.0/src/scope.rs","byte_start":7835,"byte_end":7853,"line_start":234,"line_end":234,"column_start":12,"column_end":30,"is_primary":true,"text":[{"text":" F: HttpServiceFactory + 'static,","highlight_start":12,"highlight_end":30}],"label":"required by this bound in `Scope::<T>::service`","suggested_replacement":null,"suggestion_applicability":null,"expansion":null}],"children":[],"rendered":null},{"message":"the full name for the type has been written to '/home/z/my-project/projects/server/target/debug/deps/butterfly_server-44a930d20c6d99e6.long-type-3794530726528928362.txt'","code":null,"level":"note","spans":[],"children":[],"rendered":null},{"message":"consider using `--verbose` to print the full type name to the console","code":null,"level":"note","spans":[],"children":[],"rendered":null}],"rendered":"\u001b[1m\u001b[91merror[E0277]\u001b[0m\u001b[1m: the trait bound `fn(Data<...>, ..., ...) -> ... {send_hud_command}: HttpServiceFactory` is not satisfied\u001b[0m\n \u001b[1m\u001b[94m--> \u001b[0msrc/api/mod.rs:15:22\n \u001b[1m\u001b[94m|\u001b[0m\n\u001b[1m\u001b[94m 15\u001b[0m \u001b[1m\u001b[94m|\u001b[0m .service(sessions::send_hud_command),\n \u001b[1m\u001b[94m|\u001b[0m \u001b[1m\u001b[94m-------\u001b[0m \u001b[1m\u001b[91m^^^^^^^^^^^^^^^^^^^^^^^^^^\u001b[0m \u001b[1m\u001b[91mthe trait `HttpServiceFactory` is not implemented for fn item `fn(Data<Arc<AppState>>, Path<String>, ...) -> ... {send_hud_command}`\u001b[0m\n \u001b[1m\u001b[94m|\u001b[0m \u001b[1m\u001b[94m|\u001b[0m\n \u001b[1m\u001b[94m|\u001b[0m \u001b[1m\u001b[94mrequired by a bound introduced by this call\u001b[0m\n \u001b[1m\u001b[94m|\u001b[0m\n \u001b[1m\u001b[94m= \u001b[0m\u001b[1mhelp\u001b[0m: the following other types implement trait `HttpServiceFactory`:\n (A, B)\n (A, B, C)\n (A, B, C, D)\n (A, B, C, D, E)\n (A, B, C, D, E, F)\n (A, B, C, D, E, F, G)\n (A, B, C, D, E, F, G, H)\n (A, B, C, D, E, F, G, H, I)\n and 10 others\n\u001b[1m\u001b[92mnote\u001b[0m: required by a bound in `actix_web::Scope::<T>::service`\n \u001b[1m\u001b[94m--> \u001b[0m/home/z/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/actix-web-4.13.0/src/scope.rs:234:12\n \u001b[1m\u001b[94m|\u001b[0m\n\u001b[1m\u001b[94m232\u001b[0m \u001b[1m\u001b[94m|\u001b[0m pub fn service<F>(mut self, factory: F) -> Self\n \u001b[1m\u001b[94m|\u001b[0m \u001b[1m\u001b[94m-------\u001b[0m \u001b[1m\u001b[94mrequired by a bound in this associated function\u001b[0m\n\u001b[1m\u001b[94m233\u001b[0m \u001b[1m\u001b[94m|\u001b[0m where\n\u001b[1m\u001b[94m234\u001b[0m \u001b[1m\u001b[94m|\u001b[0m F: HttpServiceFactory + 'static,\n \u001b[1m\u001b[94m|\u001b[0m \u001b[1m\u001b[92m^^^^^^^^^^^^^^^^^^\u001b[0m \u001b[1m\u001b[92mrequired by this bound in `Scope::<T>::service`\u001b[0m\n \u001b[1m\u001b[94m= \u001b[0m\u001b[1mnote\u001b[0m: the full name for the type has been written to '/home/z/my-project/projects/server/target/debug/deps/butterfly_server-44a930d20c6d99e6.long-type-3794530726528928362.txt'\n \u001b[1m\u001b[94m= \u001b[0m\u001b[1mnote\u001b[0m: consider using `--verbose` to print the full type name to the console\n\n"}
{"$message_type":"diagnostic","message":"`FrameBuffer` doesn't implement `std::fmt::Debug`","code":{"code":"E0277","explanation":"You tried to use a type which doesn't implement some trait in a place which\nexpected that trait.\n\nErroneous code example:\n\n```compile_fail,E0277\n// here we declare the Foo trait with a bar method\ntrait Foo {\n fn bar(&self);\n}\n\n// we now declare a function which takes an object implementing the Foo trait\nfn some_func<T: Foo>(foo: T) {\n foo.bar();\n}\n\nfn main() {\n // we now call the method with the i32 type, which doesn't implement\n // the Foo trait\n some_func(5i32); // error: the trait bound `i32 : Foo` is not satisfied\n}\n```\n\nIn order to fix this error, verify that the type you're using does implement\nthe trait. Example:\n\n```\ntrait Foo {\n fn bar(&self);\n}\n\n// we implement the trait on the i32 type\nimpl Foo for i32 {\n fn bar(&self) {}\n}\n\nfn some_func<T: Foo>(foo: T) {\n foo.bar(); // we can now use this method since i32 implements the\n // Foo trait\n}\n\nfn main() {\n some_func(5i32); // ok!\n}\n```\n\nOr in a generic context, an erroneous code example would look like:\n\n```compile_fail,E0277\nfn some_func<T>(foo: T) {\n println!(\"{:?}\", foo); // error: the trait `core::fmt::Debug` is not\n // implemented for the type `T`\n}\n\nfn main() {\n // We now call the method with the i32 type,\n // which *does* implement the Debug trait.\n some_func(5i32);\n}\n```\n\nNote that the error here is in the definition of the generic function. Although\nwe only call it with a parameter that does implement `Debug`, the compiler\nstill rejects the function. It must work with all possible input types. In\norder to make this example compile, we need to restrict the generic type we're\naccepting:\n\n```\nuse std::fmt;\n\n// Restrict the input type to types that implement Debug.\nfn some_func<T: fmt::Debug>(foo: T) {\n println!(\"{:?}\", foo);\n}\n\nfn main() {\n // Calling the method is still fine, as i32 implements Debug.\n some_func(5i32);\n\n // This would fail to compile now:\n // struct WithoutDebug;\n // some_func(WithoutDebug);\n}\n```\n\nRust only looks at the signature of the called function, as such it must\nalready specify all requirements that will be used for every type parameter.\n"},"level":"error","spans":[{"file_name":"src/state.rs","byte_start":824,"byte_end":876,"line_start":25,"line_end":25,"column_start":5,"column_end":57,"is_primary":true,"text":[{"text":" pub frame_buffers: DashMap<String, Arc<FrameBuffer>>,","highlight_start":5,"highlight_end":57}],"label":"the trait `std::fmt::Debug` is not implemented for `FrameBuffer`","suggested_replacement":null,"suggestion_applicability":null,"expansion":{"span":{"file_name":"src/state.rs","byte_start":239,"byte_end":244,"line_start":10,"line_end":10,"column_start":10,"column_end":15,"is_primary":false,"text":[{"text":"#[derive(Debug)]","highlight_start":10,"highlight_end":15}],"label":null,"suggested_replacement":null,"suggestion_applicability":null,"expansion":null},"macro_decl_name":"#[derive(Debug)]","def_site_span":{"file_name":"/rustc/e408947bfd200af42db322daf0fadfe7e26d3bd1/library/core/src/fmt/mod.rs","byte_start":43941,"byte_end":43956,"line_start":1092,"line_end":1092,"column_start":5,"column_end":20,"is_primary":false,"text":[],"label":null,"suggested_replacement":null,"suggestion_applicability":null,"expansion":null}}}],"children":[{"message":"add `#[derive(Debug)]` to `FrameBuffer` or manually `impl std::fmt::Debug for FrameBuffer`","code":null,"level":"note","spans":[],"children":[],"rendered":null},{"message":"the trait `std::fmt::Debug` is implemented for `DashMap<K, V, S>`","code":null,"level":"help","spans":[{"file_name":"/home/z/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/dashmap-6.1.0/src/lib.rs","byte_start":37769,"byte_end":37875,"line_start":1239,"line_end":1240,"column_start":1,"column_end":25,"is_primary":true,"text":[{"text":"impl<K: Eq + Hash + fmt::Debug, V: fmt::Debug, S: BuildHasher + Clone> fmt::Debug","highlight_start":1,"highlight_end":1},{"text":" for DashMap<K, V, S>","highlight_start":1,"highlight_end":25}],"label":null,"suggested_replacement":null,"suggestion_applicability":null,"expansion":null}],"children":[],"rendered":null},{"message":"consider annotating `FrameBuffer` with `#[derive(Debug)]`","code":null,"level":"help","spans":[{"file_name":"src/state.rs","byte_start":1085,"byte_end":1085,"line_start":31,"line_end":31,"column_start":1,"column_end":1,"is_primary":true,"text":[{"text":"pub struct FrameBuffer {","highlight_start":1,"highlight_end":1}],"label":null,"suggested_replacement":"#[derive(Debug)]\n","suggestion_applicability":"MaybeIncorrect","expansion":null}],"children":[],"rendered":null}],"rendered":"\u001b[1m\u001b[91merror[E0277]\u001b[0m\u001b[1m: `FrameBuffer` doesn't implement `std::fmt::Debug`\u001b[0m\n \u001b[1m\u001b[94m--> \u001b[0msrc/state.rs:25:5\n \u001b[1m\u001b[94m|\u001b[0m\n\u001b[1m\u001b[94m 10\u001b[0m \u001b[1m\u001b[94m|\u001b[0m #[derive(Debug)]\n \u001b[1m\u001b[94m|\u001b[0m \u001b[1m\u001b[94m-----\u001b[0m \u001b[1m\u001b[94min this derive macro expansion\u001b[0m\n\u001b[1m\u001b[94m...\u001b[0m\n\u001b[1m\u001b[94m 25\u001b[0m \u001b[1m\u001b[94m|\u001b[0m pub frame_buffers: DashMap<String, Arc<FrameBuffer>>,\n \u001b[1m\u001b[94m|\u001b[0m \u001b[1m\u001b[91m^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\u001b[0m \u001b[1m\u001b[91mthe trait `std::fmt::Debug` is not implemented for `FrameBuffer`\u001b[0m\n \u001b[1m\u001b[94m|\u001b[0m\n \u001b[1m\u001b[94m= \u001b[0m\u001b[1mnote\u001b[0m: add `#[derive(Debug)]` to `FrameBuffer` or manually `impl std::fmt::Debug for FrameBuffer`\n\u001b[1m\u001b[96mhelp\u001b[0m: the trait `std::fmt::Debug` \u001b[1m\u001b[35mis\u001b[0m implemented for `\u001b[1m\u001b[35mDashMap<K, V, S>\u001b[0m`\n \u001b[1m\u001b[94m--> \u001b[0m/home/z/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/dashmap-6.1.0/src/lib.rs:1239:1\n \u001b[1m\u001b[94m|\u001b[0m\n\u001b[1m\u001b[94m1239\u001b[0m \u001b[1m\u001b[94m|\u001b[0m \u001b[1m\u001b[96m/\u001b[0m impl<K: Eq + Hash + fmt::Debug, V: fmt::Debug, S: BuildHasher + Clone> fmt::Debug\n\u001b[1m\u001b[94m1240\u001b[0m \u001b[1m\u001b[94m|\u001b[0m \u001b[1m\u001b[96m|\u001b[0m for DashMap<K, V, S>\n \u001b[1m\u001b[94m|\u001b[0m \u001b[1m\u001b[96m|________________________^\u001b[0m\n\u001b[1m\u001b[96mhelp\u001b[0m: consider annotating `FrameBuffer` with `#[derive(Debug)]`\n \u001b[1m\u001b[94m|\u001b[0m\n\u001b[1m\u001b[94m 31\u001b[0m \u001b[92m+ #[derive(Debug)]\u001b[0m\n\u001b[1m\u001b[94m 32\u001b[0m \u001b[1m\u001b[94m|\u001b[0m pub struct FrameBuffer {\n \u001b[1m\u001b[94m|\u001b[0m\n\n"}
{"$message_type":"diagnostic","message":"no method named `clone` found for struct `Cors` 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":2056,"byte_end":2061,"line_start":69,"line_end":69,"column_start":24,"column_end":29,"is_primary":true,"text":[{"text":" .wrap(cors.clone())","highlight_start":24,"highlight_end":29}],"label":"method not found in `Cors`","suggested_replacement":null,"suggestion_applicability":null,"expansion":null}],"children":[],"rendered":"\u001b[1m\u001b[91merror[E0599]\u001b[0m\u001b[1m: no method named `clone` found for struct `Cors` in the current scope\u001b[0m\n \u001b[1m\u001b[94m--> \u001b[0msrc/main.rs:69:24\n \u001b[1m\u001b[94m|\u001b[0m\n\u001b[1m\u001b[94m69\u001b[0m \u001b[1m\u001b[94m|\u001b[0m .wrap(cors.clone())\n \u001b[1m\u001b[94m|\u001b[0m \u001b[1m\u001b[91m^^^^^\u001b[0m \u001b[1m\u001b[91mmethod not found in `Cors`\u001b[0m\n\n"}
{"$message_type":"diagnostic","message":"unused variable: `active`","code":{"code":"unused_variables","explanation":null},"level":"warning","spans":[{"file_name":"src/state.rs","byte_start":5123,"byte_end":5129,"line_start":146,"line_end":146,"column_start":13,"column_end":19,"is_primary":true,"text":[{"text":" let active: usize = self","highlight_start":13,"highlight_end":19}],"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/state.rs","byte_start":5123,"byte_end":5129,"line_start":146,"line_end":146,"column_start":13,"column_end":19,"is_primary":true,"text":[{"text":" let active: usize = self","highlight_start":13,"highlight_end":19}],"label":null,"suggested_replacement":"_active","suggestion_applicability":"MachineApplicable","expansion":null}],"children":[],"rendered":null}],"rendered":"\u001b[1m\u001b[33mwarning\u001b[0m\u001b[1m: unused variable: `active`\u001b[0m\n \u001b[1m\u001b[94m--> \u001b[0msrc/state.rs:146:13\n \u001b[1m\u001b[94m|\u001b[0m\n\u001b[1m\u001b[94m146\u001b[0m \u001b[1m\u001b[94m|\u001b[0m let active: usize = self\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: `_active`\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: `state`","code":{"code":"unused_variables","explanation":null},"level":"warning","spans":[{"file_name":"src/ws/handler.rs","byte_start":8510,"byte_end":8515,"line_start":219,"line_end":219,"column_start":31,"column_end":36,"is_primary":true,"text":[{"text":"async fn broadcast_to_viewers(state: &Arc<crate::state::AppState>, session_id: &str, msg: &WsMessage) {","highlight_start":31,"highlight_end":36}],"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/ws/handler.rs","byte_start":8510,"byte_end":8515,"line_start":219,"line_end":219,"column_start":31,"column_end":36,"is_primary":true,"text":[{"text":"async fn broadcast_to_viewers(state: &Arc<crate::state::AppState>, session_id: &str, msg: &WsMessage) {","highlight_start":31,"highlight_end":36}],"label":null,"suggested_replacement":"_state","suggestion_applicability":"MachineApplicable","expansion":null}],"children":[],"rendered":null}],"rendered":"\u001b[1m\u001b[33mwarning\u001b[0m\u001b[1m: unused variable: `state`\u001b[0m\n \u001b[1m\u001b[94m--> \u001b[0msrc/ws/handler.rs:219:31\n \u001b[1m\u001b[94m|\u001b[0m\n\u001b[1m\u001b[94m219\u001b[0m \u001b[1m\u001b[94m|\u001b[0m async fn broadcast_to_viewers(state: &Arc<crate::state::AppState>, session_id: &str, msg: &WsMessage) {\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: `_state`\u001b[0m\n\n"}
{"$message_type":"diagnostic","message":"unused variable: `state`","code":{"code":"unused_variables","explanation":null},"level":"warning","spans":[{"file_name":"src/ws/handler.rs","byte_start":8926,"byte_end":8931,"line_start":226,"line_end":226,"column_start":27,"column_end":32,"is_primary":true,"text":[{"text":"async fn forward_to_agent(state: &Arc<crate::state::AppState>, session_id: &str, msg: &WsMessage) {","highlight_start":27,"highlight_end":32}],"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/ws/handler.rs","byte_start":8926,"byte_end":8931,"line_start":226,"line_end":226,"column_start":27,"column_end":32,"is_primary":true,"text":[{"text":"async fn forward_to_agent(state: &Arc<crate::state::AppState>, session_id: &str, msg: &WsMessage) {","highlight_start":27,"highlight_end":32}],"label":null,"suggested_replacement":"_state","suggestion_applicability":"MachineApplicable","expansion":null}],"children":[],"rendered":null}],"rendered":"\u001b[1m\u001b[33mwarning\u001b[0m\u001b[1m: unused variable: `state`\u001b[0m\n \u001b[1m\u001b[94m--> \u001b[0msrc/ws/handler.rs:226:27\n \u001b[1m\u001b[94m|\u001b[0m\n\u001b[1m\u001b[94m226\u001b[0m \u001b[1m\u001b[94m|\u001b[0m async fn forward_to_agent(state: &Arc<crate::state::AppState>, session_id: &str, msg: &WsMessage) {\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: `_state`\u001b[0m\n\n"}
{"$message_type":"diagnostic","message":"aborting due to 12 previous errors; 5 warnings emitted","code":null,"level":"error","spans":[],"children":[],"rendered":"\u001b[1m\u001b[91merror\u001b[0m\u001b[1m: aborting due to 12 previous errors; 5 warnings emitted\u001b[0m\n\n"}
{"$message_type":"diagnostic","message":"Some errors have detailed explanations: E0277, E0432, E0599.","code":null,"level":"failure-note","spans":[],"children":[],"rendered":"\u001b[1mSome errors have detailed explanations: E0277, E0432, E0599.\u001b[0m\n"}
{"$message_type":"diagnostic","message":"For more information about an error, try `rustc --explain E0277`.","code":null,"level":"failure-note","spans":[],"children":[],"rendered":"\u001b[1mFor more information about an error, try `rustc --explain E0277`.\u001b[0m\n"}