Files
GopherGate/target/debug/.fingerprint/llm-proxy-715a892f9b0d7ed9/output-bin-llm-proxy
2026-02-26 12:47:43 -05:00

16 lines
31 KiB
Plaintext

{"$message_type":"diagnostic","message":"failed to resolve: could not find `ServeDir` in `services`","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/dashboard/mod.rs","byte_start":2824,"byte_end":2832,"line_start":125,"line_end":125,"column_start":50,"column_end":58,"is_primary":true,"text":[{"text":" .nest_service(\"/\", tower_http::services::ServeDir::new(\"static\"))","highlight_start":50,"highlight_end":58}],"label":"could not find `ServeDir` in `services`","suggested_replacement":null,"suggestion_applicability":null,"expansion":null}],"children":[{"message":"found an item that was configured out","code":null,"level":"note","spans":[{"file_name":"/home/newkirk/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tower-http-0.6.8/src/services/mod.rs","byte_start":515,"byte_end":529,"line_start":19,"line_end":19,"column_start":7,"column_end":21,"is_primary":false,"text":[{"text":"#[cfg(feature = \"fs\")]","highlight_start":7,"highlight_end":21}],"label":"the item is gated behind the `fs` feature","suggested_replacement":null,"suggestion_applicability":null,"expansion":null},{"file_name":"/home/newkirk/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tower-http-0.6.8/src/services/mod.rs","byte_start":566,"byte_end":574,"line_start":21,"line_end":21,"column_start":20,"column_end":28,"is_primary":true,"text":[{"text":"pub use self::fs::{ServeDir, ServeFile};","highlight_start":20,"highlight_end":28}],"label":null,"suggested_replacement":null,"suggestion_applicability":null,"expansion":null}],"children":[],"rendered":null}],"rendered":"\u001b[1m\u001b[91merror[E0433]\u001b[0m\u001b[1m: failed to resolve: could not find `ServeDir` in `services`\u001b[0m\n \u001b[1m\u001b[94m--> \u001b[0msrc/dashboard/mod.rs:125:50\n \u001b[1m\u001b[94m|\u001b[0m\n\u001b[1m\u001b[94m125\u001b[0m \u001b[1m\u001b[94m|\u001b[0m .nest_service(\"/\", tower_http::services::ServeDir::new(\"static\"))\n \u001b[1m\u001b[94m|\u001b[0m \u001b[1m\u001b[91m^^^^^^^^\u001b[0m \u001b[1m\u001b[91mcould not find `ServeDir` in `services`\u001b[0m\n \u001b[1m\u001b[94m|\u001b[0m\n\u001b[1m\u001b[92mnote\u001b[0m: found an item that was configured out\n \u001b[1m\u001b[94m--> \u001b[0m/home/newkirk/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tower-http-0.6.8/src/services/mod.rs:21:20\n \u001b[1m\u001b[94m|\u001b[0m\n \u001b[1m\u001b[94m19\u001b[0m \u001b[1m\u001b[94m|\u001b[0m #[cfg(feature = \"fs\")]\n \u001b[1m\u001b[94m|\u001b[0m \u001b[1m\u001b[94m--------------\u001b[0m \u001b[1m\u001b[94mthe item is gated behind the `fs` feature\u001b[0m\n \u001b[1m\u001b[94m20\u001b[0m \u001b[1m\u001b[94m|\u001b[0m #[doc(inline)]\n \u001b[1m\u001b[94m21\u001b[0m \u001b[1m\u001b[94m|\u001b[0m pub use self::fs::{ServeDir, ServeFile};\n \u001b[1m\u001b[94m|\u001b[0m \u001b[1m\u001b[92m^^^^^^^^\u001b[0m\n\n"}
{"$message_type":"diagnostic","message":"failed to resolve: could not find `ServeDir` in `services`","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/dashboard/mod.rs","byte_start":2897,"byte_end":2905,"line_start":126,"line_end":126,"column_start":49,"column_end":57,"is_primary":true,"text":[{"text":" .fallback_service(tower_http::services::ServeDir::new(\"static\"))","highlight_start":49,"highlight_end":57}],"label":"could not find `ServeDir` in `services`","suggested_replacement":null,"suggestion_applicability":null,"expansion":null}],"children":[{"message":"found an item that was configured out","code":null,"level":"note","spans":[{"file_name":"/home/newkirk/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tower-http-0.6.8/src/services/mod.rs","byte_start":515,"byte_end":529,"line_start":19,"line_end":19,"column_start":7,"column_end":21,"is_primary":false,"text":[{"text":"#[cfg(feature = \"fs\")]","highlight_start":7,"highlight_end":21}],"label":"the item is gated behind the `fs` feature","suggested_replacement":null,"suggestion_applicability":null,"expansion":null},{"file_name":"/home/newkirk/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tower-http-0.6.8/src/services/mod.rs","byte_start":566,"byte_end":574,"line_start":21,"line_end":21,"column_start":20,"column_end":28,"is_primary":true,"text":[{"text":"pub use self::fs::{ServeDir, ServeFile};","highlight_start":20,"highlight_end":28}],"label":null,"suggested_replacement":null,"suggestion_applicability":null,"expansion":null}],"children":[],"rendered":null}],"rendered":"\u001b[1m\u001b[91merror[E0433]\u001b[0m\u001b[1m: failed to resolve: could not find `ServeDir` in `services`\u001b[0m\n \u001b[1m\u001b[94m--> \u001b[0msrc/dashboard/mod.rs:126:49\n \u001b[1m\u001b[94m|\u001b[0m\n\u001b[1m\u001b[94m126\u001b[0m \u001b[1m\u001b[94m|\u001b[0m .fallback_service(tower_http::services::ServeDir::new(\"static\"))\n \u001b[1m\u001b[94m|\u001b[0m \u001b[1m\u001b[91m^^^^^^^^\u001b[0m \u001b[1m\u001b[91mcould not find `ServeDir` in `services`\u001b[0m\n \u001b[1m\u001b[94m|\u001b[0m\n\u001b[1m\u001b[92mnote\u001b[0m: found an item that was configured out\n \u001b[1m\u001b[94m--> \u001b[0m/home/newkirk/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tower-http-0.6.8/src/services/mod.rs:21:20\n \u001b[1m\u001b[94m|\u001b[0m\n \u001b[1m\u001b[94m19\u001b[0m \u001b[1m\u001b[94m|\u001b[0m #[cfg(feature = \"fs\")]\n \u001b[1m\u001b[94m|\u001b[0m \u001b[1m\u001b[94m--------------\u001b[0m \u001b[1m\u001b[94mthe item is gated behind the `fs` feature\u001b[0m\n \u001b[1m\u001b[94m20\u001b[0m \u001b[1m\u001b[94m|\u001b[0m #[doc(inline)]\n \u001b[1m\u001b[94m21\u001b[0m \u001b[1m\u001b[94m|\u001b[0m pub use self::fs::{ServeDir, ServeFile};\n \u001b[1m\u001b[94m|\u001b[0m \u001b[1m\u001b[92m^^^^^^^^\u001b[0m\n\n"}
{"$message_type":"diagnostic","message":"unused import: `FunctionCall`","code":{"code":"unused_imports","explanation":null},"level":"warning","spans":[{"file_name":"src/providers/openai.rs","byte_start":434,"byte_end":446,"line_start":4,"line_end":4,"column_start":335,"column_end":347,"is_primary":true,"text":[{"text":"use async_openai::types::chat::{CreateChatCompletionRequestArgs, ChatCompletionRequestMessage, ChatCompletionRequestUserMessage, ChatCompletionRequestSystemMessage, ChatCompletionRequestAssistantMessage, ChatCompletionRequestUserMessageContent, ChatCompletionRequestSystemMessageContent, ChatCompletionRequestAssistantMessageContent, FunctionCall};","highlight_start":335,"highlight_end":347}],"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/providers/openai.rs","byte_start":432,"byte_end":446,"line_start":4,"line_end":4,"column_start":333,"column_end":347,"is_primary":true,"text":[{"text":"use async_openai::types::chat::{CreateChatCompletionRequestArgs, ChatCompletionRequestMessage, ChatCompletionRequestUserMessage, ChatCompletionRequestSystemMessage, ChatCompletionRequestAssistantMessage, ChatCompletionRequestUserMessageContent, ChatCompletionRequestSystemMessageContent, ChatCompletionRequestAssistantMessageContent, FunctionCall};","highlight_start":333,"highlight_end":347}],"label":null,"suggested_replacement":"","suggestion_applicability":"MachineApplicable","expansion":null}],"children":[],"rendered":null}],"rendered":"\u001b[1m\u001b[33mwarning\u001b[0m\u001b[1m: unused import: `FunctionCall`\u001b[0m\n \u001b[1m\u001b[94m--> \u001b[0msrc/providers/openai.rs:4:335\n \u001b[1m\u001b[94m|\u001b[0m\n\u001b[1m\u001b[94m4\u001b[0m \u001b[1m\u001b[94m|\u001b[0m \u001b[1m\u001b[94m...\u001b[0messageContent, ChatCompletionRequestAssistantMessageContent, FunctionCall};\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: `serde_json::json`","code":{"code":"unused_imports","explanation":null},"level":"warning","spans":[{"file_name":"src/providers/gemini.rs","byte_start":91,"byte_end":107,"line_start":4,"line_end":4,"column_start":5,"column_end":21,"is_primary":true,"text":[{"text":"use serde_json::json;","highlight_start":5,"highlight_end":21}],"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/providers/gemini.rs","byte_start":87,"byte_end":109,"line_start":4,"line_end":5,"column_start":1,"column_end":1,"is_primary":true,"text":[{"text":"use serde_json::json;","highlight_start":1,"highlight_end":22},{"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: `serde_json::json`\u001b[0m\n \u001b[1m\u001b[94m--> \u001b[0msrc/providers/gemini.rs:4:5\n \u001b[1m\u001b[94m|\u001b[0m\n\u001b[1m\u001b[94m4\u001b[0m \u001b[1m\u001b[94m|\u001b[0m use serde_json::json;\n \u001b[1m\u001b[94m|\u001b[0m \u001b[1m\u001b[33m^^^^^^^^^^^^^^^^\u001b[0m\n\n"}
{"$message_type":"diagnostic","message":"unused import: `FunctionCall`","code":{"code":"unused_imports","explanation":null},"level":"warning","spans":[{"file_name":"src/providers/deepseek.rs","byte_start":434,"byte_end":446,"line_start":4,"line_end":4,"column_start":335,"column_end":347,"is_primary":true,"text":[{"text":"use async_openai::types::chat::{CreateChatCompletionRequestArgs, ChatCompletionRequestMessage, ChatCompletionRequestUserMessage, ChatCompletionRequestSystemMessage, ChatCompletionRequestAssistantMessage, ChatCompletionRequestUserMessageContent, ChatCompletionRequestSystemMessageContent, ChatCompletionRequestAssistantMessageContent, FunctionCall};","highlight_start":335,"highlight_end":347}],"label":null,"suggested_replacement":null,"suggestion_applicability":null,"expansion":null}],"children":[{"message":"remove the unused import","code":null,"level":"help","spans":[{"file_name":"src/providers/deepseek.rs","byte_start":432,"byte_end":446,"line_start":4,"line_end":4,"column_start":333,"column_end":347,"is_primary":true,"text":[{"text":"use async_openai::types::chat::{CreateChatCompletionRequestArgs, ChatCompletionRequestMessage, ChatCompletionRequestUserMessage, ChatCompletionRequestSystemMessage, ChatCompletionRequestAssistantMessage, ChatCompletionRequestUserMessageContent, ChatCompletionRequestSystemMessageContent, ChatCompletionRequestAssistantMessageContent, FunctionCall};","highlight_start":333,"highlight_end":347}],"label":null,"suggested_replacement":"","suggestion_applicability":"MachineApplicable","expansion":null}],"children":[],"rendered":null}],"rendered":"\u001b[1m\u001b[33mwarning\u001b[0m\u001b[1m: unused import: `FunctionCall`\u001b[0m\n \u001b[1m\u001b[94m--> \u001b[0msrc/providers/deepseek.rs:4:335\n \u001b[1m\u001b[94m|\u001b[0m\n\u001b[1m\u001b[94m4\u001b[0m \u001b[1m\u001b[94m|\u001b[0m \u001b[1m\u001b[94m...\u001b[0messageContent, ChatCompletionRequestAssistantMessageContent, FunctionCall};\n \u001b[1m\u001b[94m|\u001b[0m \u001b[1m\u001b[33m^^^^^^^^^^^^\u001b[0m\n\n"}
{"$message_type":"diagnostic","message":"unused imports: `Html` and `Response`","code":{"code":"unused_imports","explanation":null},"level":"warning","spans":[{"file_name":"src/dashboard/mod.rs","byte_start":136,"byte_end":140,"line_start":5,"line_end":5,"column_start":16,"column_end":20,"is_primary":true,"text":[{"text":" response::{Html, IntoResponse, Json, Response},","highlight_start":16,"highlight_end":20}],"label":null,"suggested_replacement":null,"suggestion_applicability":null,"expansion":null},{"file_name":"src/dashboard/mod.rs","byte_start":162,"byte_end":170,"line_start":5,"line_end":5,"column_start":42,"column_end":50,"is_primary":true,"text":[{"text":" response::{Html, IntoResponse, Json, Response},","highlight_start":42,"highlight_end":50}],"label":null,"suggested_replacement":null,"suggestion_applicability":null,"expansion":null}],"children":[{"message":"remove the unused imports","code":null,"level":"help","spans":[{"file_name":"src/dashboard/mod.rs","byte_start":136,"byte_end":142,"line_start":5,"line_end":5,"column_start":16,"column_end":22,"is_primary":true,"text":[{"text":" response::{Html, IntoResponse, Json, Response},","highlight_start":16,"highlight_end":22}],"label":null,"suggested_replacement":"","suggestion_applicability":"MachineApplicable","expansion":null},{"file_name":"src/dashboard/mod.rs","byte_start":160,"byte_end":170,"line_start":5,"line_end":5,"column_start":40,"column_end":50,"is_primary":true,"text":[{"text":" response::{Html, IntoResponse, Json, Response},","highlight_start":40,"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 imports: `Html` and `Response`\u001b[0m\n \u001b[1m\u001b[94m--> \u001b[0msrc/dashboard/mod.rs:5:16\n \u001b[1m\u001b[94m|\u001b[0m\n\u001b[1m\u001b[94m5\u001b[0m \u001b[1m\u001b[94m|\u001b[0m response::{Html, IntoResponse, Json, Response},\n \u001b[1m\u001b[94m|\u001b[0m \u001b[1m\u001b[33m^^^^\u001b[0m \u001b[1m\u001b[33m^^^^^^^^\u001b[0m\n\n"}
{"$message_type":"diagnostic","message":"mismatched types","code":{"code":"E0308","explanation":"Expected type did not match the received type.\n\nErroneous code examples:\n\n```compile_fail,E0308\nfn plus_one(x: i32) -> i32 {\n x + 1\n}\n\nplus_one(\"Not a number\");\n// ^^^^^^^^^^^^^^ expected `i32`, found `&str`\n\nif \"Not a bool\" {\n// ^^^^^^^^^^^^ expected `bool`, found `&str`\n}\n\nlet x: f32 = \"Not a float\";\n// --- ^^^^^^^^^^^^^ expected `f32`, found `&str`\n// |\n// expected due to this\n```\n\nThis error occurs when an expression was used in a place where the compiler\nexpected an expression of a different type. It can occur in several cases, the\nmost common being when calling a function and passing an argument which has a\ndifferent type than the matching type in the function declaration.\n"},"level":"error","spans":[{"file_name":"src/dashboard/mod.rs","byte_start":4615,"byte_end":4748,"line_start":167,"line_end":170,"column_start":9,"column_end":23,"is_primary":true,"text":[{"text":" serde_json::json!({","highlight_start":9,"highlight_end":28},{"text":" \"type\": \"connected\",","highlight_start":1,"highlight_end":33},{"text":" \"message\": \"Connected to LLM Proxy Dashboard\"","highlight_start":1,"highlight_end":58},{"text":" }).to_string(),","highlight_start":1,"highlight_end":23}],"label":"expected `Utf8Bytes`, found `String`","suggested_replacement":null,"suggestion_applicability":null,"expansion":null},{"file_name":"src/dashboard/mod.rs","byte_start":4592,"byte_end":4605,"line_start":166,"line_end":166,"column_start":25,"column_end":38,"is_primary":false,"text":[{"text":" let _ = socket.send(Message::Text(","highlight_start":25,"highlight_end":38}],"label":"arguments to this enum variant are incorrect","suggested_replacement":null,"suggestion_applicability":null,"expansion":null}],"children":[{"message":"tuple variant defined here","code":null,"level":"note","spans":[{"file_name":"/home/newkirk/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/axum-0.8.8/src/extract/ws.rs","byte_start":22691,"byte_end":22695,"line_start":737,"line_end":737,"column_start":5,"column_end":9,"is_primary":true,"text":[{"text":" Text(Utf8Bytes),","highlight_start":5,"highlight_end":9}],"label":null,"suggested_replacement":null,"suggestion_applicability":null,"expansion":null}],"children":[],"rendered":null},{"message":"call `Into::into` on this expression to convert `std::string::String` into `Utf8Bytes`","code":null,"level":"help","spans":[{"file_name":"src/dashboard/mod.rs","byte_start":4748,"byte_end":4748,"line_start":170,"line_end":170,"column_start":23,"column_end":23,"is_primary":true,"text":[{"text":" }).to_string(),","highlight_start":23,"highlight_end":23}],"label":null,"suggested_replacement":".into()","suggestion_applicability":"MaybeIncorrect","expansion":null}],"children":[],"rendered":null}],"rendered":"\u001b[1m\u001b[91merror[E0308]\u001b[0m\u001b[1m: mismatched types\u001b[0m\n \u001b[1m\u001b[94m--> \u001b[0msrc/dashboard/mod.rs:167:9\n \u001b[1m\u001b[94m|\u001b[0m\n\u001b[1m\u001b[94m166\u001b[0m \u001b[1m\u001b[94m|\u001b[0m let _ = socket.send(Message::Text(\n \u001b[1m\u001b[94m|\u001b[0m \u001b[1m\u001b[94m-------------\u001b[0m \u001b[1m\u001b[94marguments to this enum variant are incorrect\u001b[0m\n\u001b[1m\u001b[94m167\u001b[0m \u001b[1m\u001b[94m|\u001b[0m \u001b[1m\u001b[91m/\u001b[0m serde_json::json!({\n\u001b[1m\u001b[94m168\u001b[0m \u001b[1m\u001b[94m|\u001b[0m \u001b[1m\u001b[91m|\u001b[0m \"type\": \"connected\",\n\u001b[1m\u001b[94m169\u001b[0m \u001b[1m\u001b[94m|\u001b[0m \u001b[1m\u001b[91m|\u001b[0m \"message\": \"Connected to LLM Proxy Dashboard\"\n\u001b[1m\u001b[94m170\u001b[0m \u001b[1m\u001b[94m|\u001b[0m \u001b[1m\u001b[91m|\u001b[0m }).to_string(),\n \u001b[1m\u001b[94m|\u001b[0m \u001b[1m\u001b[91m|______________________^\u001b[0m \u001b[1m\u001b[91mexpected `Utf8Bytes`, found `String`\u001b[0m\n \u001b[1m\u001b[94m|\u001b[0m\n\u001b[1m\u001b[92mnote\u001b[0m: tuple variant defined here\n \u001b[1m\u001b[94m--> \u001b[0m/home/newkirk/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/axum-0.8.8/src/extract/ws.rs:737:5\n \u001b[1m\u001b[94m|\u001b[0m\n\u001b[1m\u001b[94m737\u001b[0m \u001b[1m\u001b[94m|\u001b[0m Text(Utf8Bytes),\n \u001b[1m\u001b[94m|\u001b[0m \u001b[1m\u001b[92m^^^^\u001b[0m\n\u001b[1m\u001b[96mhelp\u001b[0m: call `Into::into` on this expression to convert `std::string::String` into `Utf8Bytes`\n \u001b[1m\u001b[94m|\u001b[0m\n\u001b[1m\u001b[94m170\u001b[0m \u001b[1m\u001b[94m| \u001b[0m }).to_string()\u001b[92m.into()\u001b[0m,\n \u001b[1m\u001b[94m|\u001b[0m \u001b[92m+++++++\u001b[0m\n\n"}
{"$message_type":"diagnostic","message":"mismatched types","code":{"code":"E0308","explanation":"Expected type did not match the received type.\n\nErroneous code examples:\n\n```compile_fail,E0308\nfn plus_one(x: i32) -> i32 {\n x + 1\n}\n\nplus_one(\"Not a number\");\n// ^^^^^^^^^^^^^^ expected `i32`, found `&str`\n\nif \"Not a bool\" {\n// ^^^^^^^^^^^^ expected `bool`, found `&str`\n}\n\nlet x: f32 = \"Not a float\";\n// --- ^^^^^^^^^^^^^ expected `f32`, found `&str`\n// |\n// expected due to this\n```\n\nThis error occurs when an expression was used in a place where the compiler\nexpected an expression of a different type. It can occur in several cases, the\nmost common being when calling a function and passing an argument which has a\ndifferent type than the matching type in the function declaration.\n"},"level":"error","spans":[{"file_name":"src/dashboard/mod.rs","byte_start":4981,"byte_end":5019,"line_start":178,"line_end":178,"column_start":45,"column_end":83,"is_primary":true,"text":[{"text":" let message = Message::Text(serde_json::to_string(&event).unwrap());","highlight_start":45,"highlight_end":83}],"label":"expected `Utf8Bytes`, found `String`","suggested_replacement":null,"suggestion_applicability":null,"expansion":null},{"file_name":"src/dashboard/mod.rs","byte_start":4967,"byte_end":4980,"line_start":178,"line_end":178,"column_start":31,"column_end":44,"is_primary":false,"text":[{"text":" let message = Message::Text(serde_json::to_string(&event).unwrap());","highlight_start":31,"highlight_end":44}],"label":"arguments to this enum variant are incorrect","suggested_replacement":null,"suggestion_applicability":null,"expansion":null}],"children":[{"message":"tuple variant defined here","code":null,"level":"note","spans":[{"file_name":"/home/newkirk/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/axum-0.8.8/src/extract/ws.rs","byte_start":22691,"byte_end":22695,"line_start":737,"line_end":737,"column_start":5,"column_end":9,"is_primary":true,"text":[{"text":" Text(Utf8Bytes),","highlight_start":5,"highlight_end":9}],"label":null,"suggested_replacement":null,"suggestion_applicability":null,"expansion":null}],"children":[],"rendered":null},{"message":"call `Into::into` on this expression to convert `std::string::String` into `Utf8Bytes`","code":null,"level":"help","spans":[{"file_name":"src/dashboard/mod.rs","byte_start":5019,"byte_end":5019,"line_start":178,"line_end":178,"column_start":83,"column_end":83,"is_primary":true,"text":[{"text":" let message = Message::Text(serde_json::to_string(&event).unwrap());","highlight_start":83,"highlight_end":83}],"label":null,"suggested_replacement":".into()","suggestion_applicability":"MaybeIncorrect","expansion":null}],"children":[],"rendered":null}],"rendered":"\u001b[1m\u001b[91merror[E0308]\u001b[0m\u001b[1m: mismatched types\u001b[0m\n \u001b[1m\u001b[94m--> \u001b[0msrc/dashboard/mod.rs:178:45\n \u001b[1m\u001b[94m|\u001b[0m\n\u001b[1m\u001b[94m178\u001b[0m \u001b[1m\u001b[94m|\u001b[0m let message = Message::Text(serde_json::to_string(&event).unwrap());\n \u001b[1m\u001b[94m|\u001b[0m \u001b[1m\u001b[94m-------------\u001b[0m \u001b[1m\u001b[91m^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\u001b[0m \u001b[1m\u001b[91mexpected `Utf8Bytes`, found `String`\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[94marguments to this enum variant are incorrect\u001b[0m\n \u001b[1m\u001b[94m|\u001b[0m\n\u001b[1m\u001b[92mnote\u001b[0m: tuple variant defined here\n \u001b[1m\u001b[94m--> \u001b[0m/home/newkirk/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/axum-0.8.8/src/extract/ws.rs:737:5\n \u001b[1m\u001b[94m|\u001b[0m\n\u001b[1m\u001b[94m737\u001b[0m \u001b[1m\u001b[94m|\u001b[0m Text(Utf8Bytes),\n \u001b[1m\u001b[94m|\u001b[0m \u001b[1m\u001b[92m^^^^\u001b[0m\n\u001b[1m\u001b[96mhelp\u001b[0m: call `Into::into` on this expression to convert `std::string::String` into `Utf8Bytes`\n \u001b[1m\u001b[94m|\u001b[0m\n\u001b[1m\u001b[94m178\u001b[0m \u001b[1m\u001b[94m| \u001b[0m let message = Message::Text(serde_json::to_string(&event).unwrap()\u001b[92m.into()\u001b[0m);\n \u001b[1m\u001b[94m|\u001b[0m \u001b[92m+++++++\u001b[0m\n\n"}
{"$message_type":"diagnostic","message":"use of deprecated field `async_openai::types::chat::ChatCompletionRequestAssistantMessage::function_call`","code":{"code":"deprecated","explanation":null},"level":"warning","spans":[{"file_name":"src/providers/openai.rs","byte_start":3674,"byte_end":3693,"line_start":93,"line_end":93,"column_start":29,"column_end":48,"is_primary":true,"text":[{"text":" function_call: None,","highlight_start":29,"highlight_end":48}],"label":null,"suggested_replacement":null,"suggestion_applicability":null,"expansion":null}],"children":[{"message":"`#[warn(deprecated)]` on by default","code":null,"level":"note","spans":[],"children":[],"rendered":null}],"rendered":"\u001b[1m\u001b[33mwarning\u001b[0m\u001b[1m: use of deprecated field `async_openai::types::chat::ChatCompletionRequestAssistantMessage::function_call`\u001b[0m\n \u001b[1m\u001b[94m--> \u001b[0msrc/providers/openai.rs:93:29\n \u001b[1m\u001b[94m|\u001b[0m\n\u001b[1m\u001b[94m93\u001b[0m \u001b[1m\u001b[94m|\u001b[0m \u001b[1m\u001b[94m...\u001b[0m function_call: None,\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(deprecated)]` on by default\n\n"}
{"$message_type":"diagnostic","message":"use of deprecated field `async_openai::types::chat::ChatCompletionRequestAssistantMessage::function_call`","code":{"code":"deprecated","explanation":null},"level":"warning","spans":[{"file_name":"src/providers/deepseek.rs","byte_start":3685,"byte_end":3704,"line_start":92,"line_end":92,"column_start":29,"column_end":48,"is_primary":true,"text":[{"text":" function_call: None,","highlight_start":29,"highlight_end":48}],"label":null,"suggested_replacement":null,"suggestion_applicability":null,"expansion":null}],"children":[],"rendered":"\u001b[1m\u001b[33mwarning\u001b[0m\u001b[1m: use of deprecated field `async_openai::types::chat::ChatCompletionRequestAssistantMessage::function_call`\u001b[0m\n \u001b[1m\u001b[94m--> \u001b[0msrc/providers/deepseek.rs:92:29\n \u001b[1m\u001b[94m|\u001b[0m\n\u001b[1m\u001b[94m92\u001b[0m \u001b[1m\u001b[94m|\u001b[0m \u001b[1m\u001b[94m...\u001b[0m function_call: None,\n \u001b[1m\u001b[94m|\u001b[0m \u001b[1m\u001b[33m^^^^^^^^^^^^^^^^^^^\u001b[0m\n\n"}
{"$message_type":"diagnostic","message":"unused variable: `r`","code":{"code":"unused_variables","explanation":null},"level":"warning","spans":[{"file_name":"src/dashboard/mod.rs","byte_start":7915,"byte_end":7916,"line_start":267,"line_end":267,"column_start":60,"column_end":61,"is_primary":true,"text":[{"text":" let total_requests: u64 = storage.requests.iter().map(|r| 1).sum();","highlight_start":60,"highlight_end":61}],"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/dashboard/mod.rs","byte_start":7915,"byte_end":7916,"line_start":267,"line_end":267,"column_start":60,"column_end":61,"is_primary":true,"text":[{"text":" let total_requests: u64 = storage.requests.iter().map(|r| 1).sum();","highlight_start":60,"highlight_end":61}],"label":null,"suggested_replacement":"_r","suggestion_applicability":"MachineApplicable","expansion":null}],"children":[],"rendered":null}],"rendered":"\u001b[1m\u001b[33mwarning\u001b[0m\u001b[1m: unused variable: `r`\u001b[0m\n \u001b[1m\u001b[94m--> \u001b[0msrc/dashboard/mod.rs:267:60\n \u001b[1m\u001b[94m|\u001b[0m\n\u001b[1m\u001b[94m267\u001b[0m \u001b[1m\u001b[94m|\u001b[0m let total_requests: u64 = storage.requests.iter().map(|r| 1).sum();\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: `_r`\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: `db_pool`","code":{"code":"unused_variables","explanation":null},"level":"warning","spans":[{"file_name":"src/main.rs","byte_start":707,"byte_end":714,"line_start":32,"line_end":32,"column_start":9,"column_end":16,"is_primary":true,"text":[{"text":" let db_pool = database::init(&config.database).await?;","highlight_start":9,"highlight_end":16}],"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":707,"byte_end":714,"line_start":32,"line_end":32,"column_start":9,"column_end":16,"is_primary":true,"text":[{"text":" let db_pool = database::init(&config.database).await?;","highlight_start":9,"highlight_end":16}],"label":null,"suggested_replacement":"_db_pool","suggestion_applicability":"MachineApplicable","expansion":null}],"children":[],"rendered":null}],"rendered":"\u001b[1m\u001b[33mwarning\u001b[0m\u001b[1m: unused variable: `db_pool`\u001b[0m\n \u001b[1m\u001b[94m--> \u001b[0msrc/main.rs:32:9\n \u001b[1m\u001b[94m|\u001b[0m\n\u001b[1m\u001b[94m32\u001b[0m \u001b[1m\u001b[94m|\u001b[0m let db_pool = database::init(&config.database).await?;\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: `_db_pool`\u001b[0m\n\n"}
{"$message_type":"diagnostic","message":"aborting due to 4 previous errors; 8 warnings emitted","code":null,"level":"error","spans":[],"children":[],"rendered":"\u001b[1m\u001b[91merror\u001b[0m\u001b[1m: aborting due to 4 previous errors; 8 warnings emitted\u001b[0m\n\n"}
{"$message_type":"diagnostic","message":"Some errors have detailed explanations: E0308, E0433.","code":null,"level":"failure-note","spans":[],"children":[],"rendered":"\u001b[1mSome errors have detailed explanations: E0308, E0433.\u001b[0m\n"}
{"$message_type":"diagnostic","message":"For more information about an error, try `rustc --explain E0308`.","code":null,"level":"failure-note","spans":[],"children":[],"rendered":"\u001b[1mFor more information about an error, try `rustc --explain E0308`.\u001b[0m\n"}