[INFO] fetching crate simple-open-ai 0.1.0...
[INFO] building simple-open-ai-0.1.0 against master#c7f6aa2869acdbf014d094c6e427e554e160b6db for pr-146237-2
[INFO] extracting crate simple-open-ai 0.1.0 into /workspace/builds/worker-5-tc1/source
[INFO] started tweaking crates.io crate simple-open-ai 0.1.0
[INFO] finished tweaking crates.io crate simple-open-ai 0.1.0
[INFO] tweaked toml for crates.io crate simple-open-ai 0.1.0 written to /workspace/builds/worker-5-tc1/source/Cargo.toml
[INFO] validating manifest of crates.io crate simple-open-ai 0.1.0 on toolchain c7f6aa2869acdbf014d094c6e427e554e160b6db
[INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+c7f6aa2869acdbf014d094c6e427e554e160b6db" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }`
[INFO] crate crates.io crate simple-open-ai 0.1.0 already has a lockfile, it will not be regenerated
[INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+c7f6aa2869acdbf014d094c6e427e554e160b6db" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }`
[INFO] [stderr]  Downloading crates ...
[INFO] [stderr]   Downloaded wasm-bindgen-macro v0.2.88
[INFO] [stderr]   Downloaded wasm-bindgen-shared v0.2.88
[INFO] [stderr]   Downloaded tempfile v3.8.1
[INFO] [stderr]   Downloaded errno v0.3.6
[INFO] [stderr]   Downloaded wasm-bindgen-futures v0.4.38
[INFO] [stderr]   Downloaded wasm-bindgen-macro-support v0.2.88
[INFO] [stderr]   Downloaded wasm-bindgen-backend v0.2.88
[INFO] [stderr]   Downloaded wasm-bindgen v0.2.88
[INFO] [stderr]   Downloaded serde_derive v1.0.192
[INFO] [stderr]   Downloaded serde v1.0.192
[INFO] [stderr]   Downloaded openssl-sys v0.9.95
[INFO] [stderr]   Downloaded js-sys v0.3.65
[INFO] [stderr]   Downloaded reqwest v0.11.22
[INFO] [stderr]   Downloaded openssl v0.10.59
[INFO] [stderr]   Downloaded rustix v0.38.21
[INFO] [stderr]   Downloaded web-sys v0.3.65
[INFO] [stderr]   Downloaded linux-raw-sys v0.4.11
[INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-tc1/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:e90291280db7d1fac5b66fc6dad9f9662629e7365a55743daf9bdf73ebc4ea79" "/opt/rustwide/cargo-home/bin/cargo" "+c7f6aa2869acdbf014d094c6e427e554e160b6db" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }`
[INFO] [stdout] b5bd1f28dd089d203303d679c0dddab15758152987a9ef892b2aa6b0f833cf52
[INFO] running `Command { std: "docker" "start" "-a" "b5bd1f28dd089d203303d679c0dddab15758152987a9ef892b2aa6b0f833cf52", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "inspect" "b5bd1f28dd089d203303d679c0dddab15758152987a9ef892b2aa6b0f833cf52", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "rm" "-f" "b5bd1f28dd089d203303d679c0dddab15758152987a9ef892b2aa6b0f833cf52", kill_on_drop: false }`
[INFO] [stdout] b5bd1f28dd089d203303d679c0dddab15758152987a9ef892b2aa6b0f833cf52
[INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-tc1/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=forbid" "-e" "RUSTDOCFLAGS=--cap-lints=forbid" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:e90291280db7d1fac5b66fc6dad9f9662629e7365a55743daf9bdf73ebc4ea79" "/opt/rustwide/cargo-home/bin/cargo" "+c7f6aa2869acdbf014d094c6e427e554e160b6db" "build" "--frozen" "--message-format=json", kill_on_drop: false }`
[INFO] [stdout] 7c812ea15075f0de8f9a3397b148867ad549e903e624f1e9bc4c30982048bb83
[INFO] running `Command { std: "docker" "start" "-a" "7c812ea15075f0de8f9a3397b148867ad549e903e624f1e9bc4c30982048bb83", kill_on_drop: false }`
[INFO] [stderr]    Compiling libc v0.2.150
[INFO] [stderr]    Compiling pkg-config v0.3.27
[INFO] [stderr]    Compiling lock_api v0.4.11
[INFO] [stderr]    Compiling parking_lot_core v0.9.9
[INFO] [stderr]    Compiling pin-project-lite v0.2.13
[INFO] [stderr]    Compiling syn v2.0.39
[INFO] [stderr]    Compiling futures-core v0.3.29
[INFO] [stderr]    Compiling bytes v1.5.0
[INFO] [stderr]    Compiling smallvec v1.11.1
[INFO] [stderr]    Compiling futures-task v0.3.29
[INFO] [stderr]    Compiling unicase v2.7.0
[INFO] [stderr]    Compiling tracing-core v0.1.32
[INFO] [stderr]    Compiling indexmap v1.9.3
[INFO] [stderr]    Compiling futures-util v0.3.29
[INFO] [stderr]    Compiling openssl v0.10.59
[INFO] [stderr]    Compiling http v0.2.9
[INFO] [stderr]    Compiling futures-channel v0.3.29
[INFO] [stderr]    Compiling futures-sink v0.3.29
[INFO] [stderr]    Compiling native-tls v0.2.11
[INFO] [stderr]    Compiling bitflags v2.4.1
[INFO] [stderr]    Compiling httparse v1.8.0
[INFO] [stderr]    Compiling cc v1.0.83
[INFO] [stderr]    Compiling serde v1.0.192
[INFO] [stderr]    Compiling mio v0.8.9
[INFO] [stderr]    Compiling socket2 v0.5.5
[INFO] [stderr]    Compiling num_cpus v1.16.0
[INFO] [stderr]    Compiling parking_lot v0.12.1
[INFO] [stderr]    Compiling signal-hook-registry v1.4.1
[INFO] [stderr]    Compiling tracing v0.1.40
[INFO] [stderr]    Compiling tinyvec v1.6.0
[INFO] [stderr]    Compiling log v0.4.20
[INFO] [stderr]    Compiling percent-encoding v2.3.0
[INFO] [stderr]    Compiling try-lock v0.2.4
[INFO] [stderr]    Compiling mime_guess v2.0.4
[INFO] [stderr]    Compiling want v0.3.1
[INFO] [stderr]    Compiling form_urlencoded v1.2.0
[INFO] [stderr]    Compiling openssl-sys v0.9.95
[INFO] [stderr]    Compiling http-body v0.4.5
[INFO] [stderr]    Compiling socket2 v0.4.10
[INFO] [stderr]    Compiling unicode-bidi v0.3.13
[INFO] [stderr]    Compiling rustversion v1.0.14
[INFO] [stderr]    Compiling tower-service v0.3.2
[INFO] [stderr]    Compiling unicode-normalization v0.1.22
[INFO] [stderr]    Compiling serde_json v1.0.108
[INFO] [stderr]    Compiling encoding_rs v0.8.33
[INFO] [stderr]    Compiling ipnet v2.9.0
[INFO] [stderr]    Compiling idna v0.4.0
[INFO] [stderr]    Compiling base64 v0.21.5
[INFO] [stderr]    Compiling strum v0.25.0
[INFO] [stderr]    Compiling url v2.4.1
[INFO] [stderr]    Compiling tokio-macros v2.1.0
[INFO] [stderr]    Compiling openssl-macros v0.1.1
[INFO] [stderr]    Compiling serde_derive v1.0.192
[INFO] [stderr]    Compiling strum_macros v0.25.3
[INFO] [stderr]    Compiling tokio v1.33.0
[INFO] [stderr]    Compiling tokio-util v0.7.10
[INFO] [stderr]    Compiling tokio-native-tls v0.3.1
[INFO] [stderr]    Compiling h2 v0.3.21
[INFO] [stderr]    Compiling serde_urlencoded v0.7.1
[INFO] [stderr]    Compiling hyper v0.14.27
[INFO] [stderr]    Compiling hyper-tls v0.5.0
[INFO] [stderr]    Compiling reqwest v0.11.22
[INFO] [stderr]    Compiling simple-open-ai v0.1.0 (/opt/rustwide/workdir)
[INFO] [stdout] warning: constant `ENDPOINT` is never used
[INFO] [stdout]   --> src/stt.rs:46:7
[INFO] [stdout]    |
[INFO] [stdout] 46 | const ENDPOINT: &str = "https://api.openai.com/v1/audio/transcriptions";
[INFO] [stdout]    |       ^^^^^^^^
[INFO] [stdout]    |
[INFO] [stdout]    = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: struct `Request` is never constructed
[INFO] [stdout]   --> src/stt.rs:48:12
[INFO] [stdout]    |
[INFO] [stdout] 48 | pub struct Request {
[INFO] [stdout]    |            ^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: struct `OpenAiResponse` is never constructed
[INFO] [stdout]   --> src/stt.rs:57:12
[INFO] [stdout]    |
[INFO] [stdout] 57 | pub struct OpenAiResponse {
[INFO] [stdout]    |            ^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: enum `ResponseFormat` is never used
[INFO] [stdout]   --> src/stt.rs:61:10
[INFO] [stdout]    |
[INFO] [stdout] 61 | pub enum ResponseFormat {
[INFO] [stdout]    |          ^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: associated items `new`, `with_response_format`, `with_language`, `with_prompt`, and `with_temperature` are never used
[INFO] [stdout]    --> src/stt.rs:79:12
[INFO] [stdout]     |
[INFO] [stdout]  78 | impl Request {
[INFO] [stdout]     | ------------ associated items in this implementation
[INFO] [stdout]  79 |     pub fn new(content: Vec<u8>) -> Request {
[INFO] [stdout]     |            ^^^
[INFO] [stdout] ...
[INFO] [stdout]  89 |     pub fn with_response_format(mut self, response_format: ResponseFormat) -> Self {
[INFO] [stdout]     |            ^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] ...
[INFO] [stdout]  93 |     pub fn with_language(mut self, language: String) -> Self {
[INFO] [stdout]     |            ^^^^^^^^^^^^^
[INFO] [stdout] ...
[INFO] [stdout]  97 |     pub fn with_prompt(mut self, prompt: String) -> Self {
[INFO] [stdout]     |            ^^^^^^^^^^^
[INFO] [stdout] ...
[INFO] [stdout] 101 |     pub fn with_temperature(mut self, temperature: f32) -> Self {
[INFO] [stdout]     |            ^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: function `get_text_from_voice` is never used
[INFO] [stdout]    --> src/stt.rs:106:14
[INFO] [stdout]     |
[INFO] [stdout] 106 | pub async fn get_text_from_voice(api_key: &str, req: Request) -> Result<String, ApiError> {
[INFO] [stdout]     |              ^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: function `get_response` is never used
[INFO] [stdout]    --> src/stt.rs:138:10
[INFO] [stdout]     |
[INFO] [stdout] 138 | async fn get_response(response_fromat: ResponseFormat, response: Response) -> String {
[INFO] [stdout]     |          ^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: constant `ENDPOINT` is never used
[INFO] [stdout]   --> src/tts.rs:34:7
[INFO] [stdout]    |
[INFO] [stdout] 34 | const ENDPOINT: &str = "https://api.openai.com/v1/audio/speech";
[INFO] [stdout]    |       ^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: struct `Request` is never constructed
[INFO] [stdout]   --> src/tts.rs:36:12
[INFO] [stdout]    |
[INFO] [stdout] 36 | pub struct Request {
[INFO] [stdout]    |            ^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: enum `ResponseFormat` is never used
[INFO] [stdout]   --> src/tts.rs:43:10
[INFO] [stdout]    |
[INFO] [stdout] 43 | pub enum ResponseFormat {
[INFO] [stdout]    |          ^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: enum `Voice` is never used
[INFO] [stdout]   --> src/tts.rs:54:10
[INFO] [stdout]    |
[INFO] [stdout] 54 | pub enum Voice {
[INFO] [stdout]    |          ^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: associated items `new` and `with_response_format` are never used
[INFO] [stdout]   --> src/tts.rs:69:12
[INFO] [stdout]    |
[INFO] [stdout] 68 | impl Request {
[INFO] [stdout]    | ------------ associated items in this implementation
[INFO] [stdout] 69 |     pub fn new(model: String, input: String, voice: Voice) -> Self {
[INFO] [stdout]    |            ^^^
[INFO] [stdout] ...
[INFO] [stdout] 77 |     pub fn with_response_format(mut self, response_format: ResponseFormat) -> Self {
[INFO] [stdout]    |            ^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: function `get_voice_from_text` is never used
[INFO] [stdout]   --> src/tts.rs:82:14
[INFO] [stdout]    |
[INFO] [stdout] 82 | pub async fn get_voice_from_text(req: Request, api_key: &str) -> Result<Bytes, ApiError> {
[INFO] [stdout]    |              ^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: enum `ApiError` is never used
[INFO] [stdout]   --> src/error.rs:32:10
[INFO] [stdout]    |
[INFO] [stdout] 32 | pub enum ApiError {
[INFO] [stdout]    |          ^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: constant `ENDPOINT` is never used
[INFO] [stdout]   --> src/chat.rs:50:7
[INFO] [stdout]    |
[INFO] [stdout] 50 | const ENDPOINT: &str = "https://api.openai.com/v1/chat/completions";
[INFO] [stdout]    |       ^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: struct `ChatCompletionRequest` is never constructed
[INFO] [stdout]   --> src/chat.rs:52:12
[INFO] [stdout]    |
[INFO] [stdout] 52 | pub struct ChatCompletionRequest<'a> {
[INFO] [stdout]    |            ^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: struct `ChatCompletionResponse` is never constructed
[INFO] [stdout]   --> src/chat.rs:59:12
[INFO] [stdout]    |
[INFO] [stdout] 59 | pub struct ChatCompletionResponse {
[INFO] [stdout]    |            ^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: struct `Choice` is never constructed
[INFO] [stdout]   --> src/chat.rs:70:12
[INFO] [stdout]    |
[INFO] [stdout] 70 | pub struct Choice {
[INFO] [stdout]    |            ^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: struct `Message` is never constructed
[INFO] [stdout]   --> src/chat.rs:77:12
[INFO] [stdout]    |
[INFO] [stdout] 77 | pub struct Message {
[INFO] [stdout]    |            ^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: struct `Usage` is never constructed
[INFO] [stdout]   --> src/chat.rs:83:12
[INFO] [stdout]    |
[INFO] [stdout] 83 | pub struct Usage {
[INFO] [stdout]    |            ^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: function `send_text` is never used
[INFO] [stdout]   --> src/chat.rs:88:14
[INFO] [stdout]    |
[INFO] [stdout] 88 | pub async fn send_text<'a>(
[INFO] [stdout]    |              ^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `stt::get_text_from_voice`
[INFO] [stdout]  --> src/main.rs:9:5
[INFO] [stdout]   |
[INFO] [stdout] 9 | use stt::get_text_from_voice;
[INFO] [stdout]   |     ^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout]   |
[INFO] [stdout]   = note: `#[warn(unused_imports)]` (part of `#[warn(unused)]`) on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused imports: `AsyncReadExt`, `AsyncWriteExt`, and `fs::File`
[INFO] [stdout]   --> src/main.rs:11:5
[INFO] [stdout]    |
[INFO] [stdout] 11 |     fs::File,
[INFO] [stdout]    |     ^^^^^^^^
[INFO] [stdout] 12 |     io::{AsyncReadExt, AsyncWriteExt},
[INFO] [stdout]    |          ^^^^^^^^^^^^  ^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused imports: `Request`, `Voice`, and `get_voice_from_text`
[INFO] [stdout]   --> src/main.rs:14:11
[INFO] [stdout]    |
[INFO] [stdout] 14 | use tts::{get_voice_from_text, Request, Voice};
[INFO] [stdout]    |           ^^^^^^^^^^^^^^^^^^^  ^^^^^^^  ^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: fields `id`, `object`, `created`, `model`, and `usage` are never read
[INFO] [stdout]   --> src/chat.rs:60:9
[INFO] [stdout]    |
[INFO] [stdout] 59 | pub struct ChatCompletionResponse {
[INFO] [stdout]    |            ---------------------- fields in this struct
[INFO] [stdout] 60 |     pub id: String,
[INFO] [stdout]    |         ^^
[INFO] [stdout] 61 |     pub object: String,
[INFO] [stdout]    |         ^^^^^^
[INFO] [stdout] 62 |     pub created: u64,
[INFO] [stdout]    |         ^^^^^^^
[INFO] [stdout] 63 |     pub model: String,
[INFO] [stdout]    |         ^^^^^
[INFO] [stdout] ...
[INFO] [stdout] 66 |     pub usage: Usage,
[INFO] [stdout]    |         ^^^^^
[INFO] [stdout]    |
[INFO] [stdout]    = note: `ChatCompletionResponse` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis
[INFO] [stdout]    = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: field `0` is never read
[INFO] [stdout]   --> src/error.rs:33:11
[INFO] [stdout]    |
[INFO] [stdout] 33 |     Error(String),
[INFO] [stdout]    |     ----- ^^^^^^
[INFO] [stdout]    |     |
[INFO] [stdout]    |     field in this variant
[INFO] [stdout]    |
[INFO] [stdout]    = note: `ApiError` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis
[INFO] [stdout] help: consider changing the field to be of unit type to suppress this warning while preserving the field numbering, or remove the field
[INFO] [stdout]    |
[INFO] [stdout] 33 -     Error(String),
[INFO] [stdout] 33 +     Error(()),
[INFO] [stdout]    |
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: field `0` is never read
[INFO] [stdout]   --> src/error.rs:34:18
[INFO] [stdout]    |
[INFO] [stdout] 34 |     RequestError(reqwest::Error),
[INFO] [stdout]    |     ------------ ^^^^^^^^^^^^^^
[INFO] [stdout]    |     |
[INFO] [stdout]    |     field in this variant
[INFO] [stdout]    |
[INFO] [stdout]    = note: `ApiError` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis
[INFO] [stdout] help: consider changing the field to be of unit type to suppress this warning while preserving the field numbering, or remove the field
[INFO] [stdout]    |
[INFO] [stdout] 34 -     RequestError(reqwest::Error),
[INFO] [stdout] 34 +     RequestError(()),
[INFO] [stdout]    |
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: constant `ENDPOINT` is never used
[INFO] [stdout]   --> src/stt.rs:46:7
[INFO] [stdout]    |
[INFO] [stdout] 46 | const ENDPOINT: &str = "https://api.openai.com/v1/audio/transcriptions";
[INFO] [stdout]    |       ^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: struct `Request` is never constructed
[INFO] [stdout]   --> src/stt.rs:48:12
[INFO] [stdout]    |
[INFO] [stdout] 48 | pub struct Request {
[INFO] [stdout]    |            ^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: struct `OpenAiResponse` is never constructed
[INFO] [stdout]   --> src/stt.rs:57:12
[INFO] [stdout]    |
[INFO] [stdout] 57 | pub struct OpenAiResponse {
[INFO] [stdout]    |            ^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: enum `ResponseFormat` is never used
[INFO] [stdout]   --> src/stt.rs:61:10
[INFO] [stdout]    |
[INFO] [stdout] 61 | pub enum ResponseFormat {
[INFO] [stdout]    |          ^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: associated items `new`, `with_response_format`, `with_language`, `with_prompt`, and `with_temperature` are never used
[INFO] [stdout]    --> src/stt.rs:79:12
[INFO] [stdout]     |
[INFO] [stdout]  78 | impl Request {
[INFO] [stdout]     | ------------ associated items in this implementation
[INFO] [stdout]  79 |     pub fn new(content: Vec<u8>) -> Request {
[INFO] [stdout]     |            ^^^
[INFO] [stdout] ...
[INFO] [stdout]  89 |     pub fn with_response_format(mut self, response_format: ResponseFormat) -> Self {
[INFO] [stdout]     |            ^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] ...
[INFO] [stdout]  93 |     pub fn with_language(mut self, language: String) -> Self {
[INFO] [stdout]     |            ^^^^^^^^^^^^^
[INFO] [stdout] ...
[INFO] [stdout]  97 |     pub fn with_prompt(mut self, prompt: String) -> Self {
[INFO] [stdout]     |            ^^^^^^^^^^^
[INFO] [stdout] ...
[INFO] [stdout] 101 |     pub fn with_temperature(mut self, temperature: f32) -> Self {
[INFO] [stdout]     |            ^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: function `get_text_from_voice` is never used
[INFO] [stdout]    --> src/stt.rs:106:14
[INFO] [stdout]     |
[INFO] [stdout] 106 | pub async fn get_text_from_voice(api_key: &str, req: Request) -> Result<String, ApiError> {
[INFO] [stdout]     |              ^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: function `get_response` is never used
[INFO] [stdout]    --> src/stt.rs:138:10
[INFO] [stdout]     |
[INFO] [stdout] 138 | async fn get_response(response_fromat: ResponseFormat, response: Response) -> String {
[INFO] [stdout]     |          ^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: constant `ENDPOINT` is never used
[INFO] [stdout]   --> src/tts.rs:34:7
[INFO] [stdout]    |
[INFO] [stdout] 34 | const ENDPOINT: &str = "https://api.openai.com/v1/audio/speech";
[INFO] [stdout]    |       ^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: struct `Request` is never constructed
[INFO] [stdout]   --> src/tts.rs:36:12
[INFO] [stdout]    |
[INFO] [stdout] 36 | pub struct Request {
[INFO] [stdout]    |            ^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: enum `ResponseFormat` is never used
[INFO] [stdout]   --> src/tts.rs:43:10
[INFO] [stdout]    |
[INFO] [stdout] 43 | pub enum ResponseFormat {
[INFO] [stdout]    |          ^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: enum `Voice` is never used
[INFO] [stdout]   --> src/tts.rs:54:10
[INFO] [stdout]    |
[INFO] [stdout] 54 | pub enum Voice {
[INFO] [stdout]    |          ^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: associated items `new` and `with_response_format` are never used
[INFO] [stdout]   --> src/tts.rs:69:12
[INFO] [stdout]    |
[INFO] [stdout] 68 | impl Request {
[INFO] [stdout]    | ------------ associated items in this implementation
[INFO] [stdout] 69 |     pub fn new(model: String, input: String, voice: Voice) -> Self {
[INFO] [stdout]    |            ^^^
[INFO] [stdout] ...
[INFO] [stdout] 77 |     pub fn with_response_format(mut self, response_format: ResponseFormat) -> Self {
[INFO] [stdout]    |            ^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: function `get_voice_from_text` is never used
[INFO] [stdout]   --> src/tts.rs:82:14
[INFO] [stdout]    |
[INFO] [stdout] 82 | pub async fn get_voice_from_text(req: Request, api_key: &str) -> Result<Bytes, ApiError> {
[INFO] [stdout]    |              ^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stderr]     Finished `dev` profile [unoptimized + debuginfo] target(s) in 1m 07s
[INFO] running `Command { std: "docker" "inspect" "7c812ea15075f0de8f9a3397b148867ad549e903e624f1e9bc4c30982048bb83", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "rm" "-f" "7c812ea15075f0de8f9a3397b148867ad549e903e624f1e9bc4c30982048bb83", kill_on_drop: false }`
[INFO] [stdout] 7c812ea15075f0de8f9a3397b148867ad549e903e624f1e9bc4c30982048bb83
[INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-tc1/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=forbid" "-e" "RUSTDOCFLAGS=--cap-lints=forbid" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:e90291280db7d1fac5b66fc6dad9f9662629e7365a55743daf9bdf73ebc4ea79" "/opt/rustwide/cargo-home/bin/cargo" "+c7f6aa2869acdbf014d094c6e427e554e160b6db" "test" "--frozen" "--no-run" "--message-format=json", kill_on_drop: false }`
[INFO] [stdout] adeab0e0b030e5a911a96cae71a19e71d67213b50afc013594434014afdd6f20
[INFO] running `Command { std: "docker" "start" "-a" "adeab0e0b030e5a911a96cae71a19e71d67213b50afc013594434014afdd6f20", kill_on_drop: false }`
[INFO] [stdout] warning: constant `ENDPOINT` is never used
[INFO] [stdout]   --> src/stt.rs:46:7
[INFO] [stdout]    |
[INFO] [stdout] 46 | const ENDPOINT: &str = "https://api.openai.com/v1/audio/transcriptions";
[INFO] [stdout]    |       ^^^^^^^^
[INFO] [stdout]    |
[INFO] [stdout]    = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: struct `Request` is never constructed
[INFO] [stdout]   --> src/stt.rs:48:12
[INFO] [stdout]    |
[INFO] [stdout] 48 | pub struct Request {
[INFO] [stdout]    |            ^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: struct `OpenAiResponse` is never constructed
[INFO] [stdout]   --> src/stt.rs:57:12
[INFO] [stdout]    |
[INFO] [stdout] 57 | pub struct OpenAiResponse {
[INFO] [stdout]    |            ^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: enum `ResponseFormat` is never used
[INFO] [stdout]   --> src/stt.rs:61:10
[INFO] [stdout]    |
[INFO] [stdout] 61 | pub enum ResponseFormat {
[INFO] [stdout]    |          ^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: associated items `new`, `with_response_format`, `with_language`, `with_prompt`, and `with_temperature` are never used
[INFO] [stdout]    --> src/stt.rs:79:12
[INFO] [stdout]     |
[INFO] [stdout]  78 | impl Request {
[INFO] [stdout]     | ------------ associated items in this implementation
[INFO] [stdout]  79 |     pub fn new(content: Vec<u8>) -> Request {
[INFO] [stdout]     |            ^^^
[INFO] [stdout] ...
[INFO] [stdout]  89 |     pub fn with_response_format(mut self, response_format: ResponseFormat) -> Self {
[INFO] [stdout]     |            ^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] ...
[INFO] [stdout]  93 |     pub fn with_language(mut self, language: String) -> Self {
[INFO] [stdout]     |            ^^^^^^^^^^^^^
[INFO] [stdout] ...
[INFO] [stdout]  97 |     pub fn with_prompt(mut self, prompt: String) -> Self {
[INFO] [stdout]     |            ^^^^^^^^^^^
[INFO] [stdout] ...
[INFO] [stdout] 101 |     pub fn with_temperature(mut self, temperature: f32) -> Self {
[INFO] [stdout]     |            ^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: function `get_text_from_voice` is never used
[INFO] [stdout]    --> src/stt.rs:106:14
[INFO] [stdout]     |
[INFO] [stdout] 106 | pub async fn get_text_from_voice(api_key: &str, req: Request) -> Result<String, ApiError> {
[INFO] [stdout]     |              ^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: function `get_response` is never used
[INFO] [stdout]    --> src/stt.rs:138:10
[INFO] [stdout]     |
[INFO] [stdout] 138 | async fn get_response(response_fromat: ResponseFormat, response: Response) -> String {
[INFO] [stdout]     |          ^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: constant `ENDPOINT` is never used
[INFO] [stdout]   --> src/tts.rs:34:7
[INFO] [stdout]    |
[INFO] [stdout] 34 | const ENDPOINT: &str = "https://api.openai.com/v1/audio/speech";
[INFO] [stdout]    |       ^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: struct `Request` is never constructed
[INFO] [stdout]   --> src/tts.rs:36:12
[INFO] [stdout]    |
[INFO] [stdout] 36 | pub struct Request {
[INFO] [stdout]    |            ^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: enum `ResponseFormat` is never used
[INFO] [stdout]   --> src/tts.rs:43:10
[INFO] [stdout]    |
[INFO] [stdout] 43 | pub enum ResponseFormat {
[INFO] [stdout]    |          ^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: enum `Voice` is never used
[INFO] [stdout]   --> src/tts.rs:54:10
[INFO] [stdout]    |
[INFO] [stdout] 54 | pub enum Voice {
[INFO] [stdout]    |          ^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: associated items `new` and `with_response_format` are never used
[INFO] [stdout]   --> src/tts.rs:69:12
[INFO] [stdout]    |
[INFO] [stdout] 68 | impl Request {
[INFO] [stdout]    | ------------ associated items in this implementation
[INFO] [stdout] 69 |     pub fn new(model: String, input: String, voice: Voice) -> Self {
[INFO] [stdout]    |            ^^^
[INFO] [stdout] ...
[INFO] [stdout] 77 |     pub fn with_response_format(mut self, response_format: ResponseFormat) -> Self {
[INFO] [stdout]    |            ^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: function `get_voice_from_text` is never used
[INFO] [stdout]   --> src/tts.rs:82:14
[INFO] [stdout]    |
[INFO] [stdout] 82 | pub async fn get_voice_from_text(req: Request, api_key: &str) -> Result<Bytes, ApiError> {
[INFO] [stdout]    |              ^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: enum `ApiError` is never used
[INFO] [stdout]   --> src/error.rs:32:10
[INFO] [stdout]    |
[INFO] [stdout] 32 | pub enum ApiError {
[INFO] [stdout]    |          ^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: constant `ENDPOINT` is never used
[INFO] [stdout]   --> src/chat.rs:50:7
[INFO] [stdout]    |
[INFO] [stdout] 50 | const ENDPOINT: &str = "https://api.openai.com/v1/chat/completions";
[INFO] [stdout]    |       ^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: struct `ChatCompletionRequest` is never constructed
[INFO] [stdout]   --> src/chat.rs:52:12
[INFO] [stdout]    |
[INFO] [stdout] 52 | pub struct ChatCompletionRequest<'a> {
[INFO] [stdout]    |            ^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: struct `ChatCompletionResponse` is never constructed
[INFO] [stdout]   --> src/chat.rs:59:12
[INFO] [stdout]    |
[INFO] [stdout] 59 | pub struct ChatCompletionResponse {
[INFO] [stdout]    |            ^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: struct `Choice` is never constructed
[INFO] [stdout]   --> src/chat.rs:70:12
[INFO] [stdout]    |
[INFO] [stdout] 70 | pub struct Choice {
[INFO] [stdout]    |            ^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: struct `Message` is never constructed
[INFO] [stdout]   --> src/chat.rs:77:12
[INFO] [stdout]    |
[INFO] [stdout] 77 | pub struct Message {
[INFO] [stdout]    |            ^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: struct `Usage` is never constructed
[INFO] [stdout]   --> src/chat.rs:83:12
[INFO] [stdout]    |
[INFO] [stdout] 83 | pub struct Usage {
[INFO] [stdout]    |            ^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: function `send_text` is never used
[INFO] [stdout]   --> src/chat.rs:88:14
[INFO] [stdout]    |
[INFO] [stdout] 88 | pub async fn send_text<'a>(
[INFO] [stdout]    |              ^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stderr]    Compiling simple-open-ai v0.1.0 (/opt/rustwide/workdir)
[INFO] [stdout] warning: unused import: `stt::get_text_from_voice`
[INFO] [stdout]  --> src/main.rs:9:5
[INFO] [stdout]   |
[INFO] [stdout] 9 | use stt::get_text_from_voice;
[INFO] [stdout]   |     ^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout]   |
[INFO] [stdout]   = note: `#[warn(unused_imports)]` (part of `#[warn(unused)]`) on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused imports: `AsyncReadExt`, `AsyncWriteExt`, and `fs::File`
[INFO] [stdout]   --> src/main.rs:11:5
[INFO] [stdout]    |
[INFO] [stdout] 11 |     fs::File,
[INFO] [stdout]    |     ^^^^^^^^
[INFO] [stdout] 12 |     io::{AsyncReadExt, AsyncWriteExt},
[INFO] [stdout]    |          ^^^^^^^^^^^^  ^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused imports: `Request`, `Voice`, and `get_voice_from_text`
[INFO] [stdout]   --> src/main.rs:14:11
[INFO] [stdout]    |
[INFO] [stdout] 14 | use tts::{get_voice_from_text, Request, Voice};
[INFO] [stdout]    |           ^^^^^^^^^^^^^^^^^^^  ^^^^^^^  ^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: constant `ENDPOINT` is never used
[INFO] [stdout]   --> src/stt.rs:46:7
[INFO] [stdout]    |
[INFO] [stdout] 46 | const ENDPOINT: &str = "https://api.openai.com/v1/audio/transcriptions";
[INFO] [stdout]    |       ^^^^^^^^
[INFO] [stdout]    |
[INFO] [stdout]    = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: struct `Request` is never constructed
[INFO] [stdout]   --> src/stt.rs:48:12
[INFO] [stdout]    |
[INFO] [stdout] 48 | pub struct Request {
[INFO] [stdout]    |            ^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: struct `OpenAiResponse` is never constructed
[INFO] [stdout]   --> src/stt.rs:57:12
[INFO] [stdout]    |
[INFO] [stdout] 57 | pub struct OpenAiResponse {
[INFO] [stdout]    |            ^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: enum `ResponseFormat` is never used
[INFO] [stdout]   --> src/stt.rs:61:10
[INFO] [stdout]    |
[INFO] [stdout] 61 | pub enum ResponseFormat {
[INFO] [stdout]    |          ^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: associated items `new`, `with_response_format`, `with_language`, `with_prompt`, and `with_temperature` are never used
[INFO] [stdout]    --> src/stt.rs:79:12
[INFO] [stdout]     |
[INFO] [stdout]  78 | impl Request {
[INFO] [stdout]     | ------------ associated items in this implementation
[INFO] [stdout]  79 |     pub fn new(content: Vec<u8>) -> Request {
[INFO] [stdout]     |            ^^^
[INFO] [stdout] ...
[INFO] [stdout]  89 |     pub fn with_response_format(mut self, response_format: ResponseFormat) -> Self {
[INFO] [stdout]     |            ^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] ...
[INFO] [stdout]  93 |     pub fn with_language(mut self, language: String) -> Self {
[INFO] [stdout]     |            ^^^^^^^^^^^^^
[INFO] [stdout] ...
[INFO] [stdout]  97 |     pub fn with_prompt(mut self, prompt: String) -> Self {
[INFO] [stdout]     |            ^^^^^^^^^^^
[INFO] [stdout] ...
[INFO] [stdout] 101 |     pub fn with_temperature(mut self, temperature: f32) -> Self {
[INFO] [stdout]     |            ^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: function `get_text_from_voice` is never used
[INFO] [stdout]    --> src/stt.rs:106:14
[INFO] [stdout]     |
[INFO] [stdout] 106 | pub async fn get_text_from_voice(api_key: &str, req: Request) -> Result<String, ApiError> {
[INFO] [stdout]     |              ^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: function `get_response` is never used
[INFO] [stdout]    --> src/stt.rs:138:10
[INFO] [stdout]     |
[INFO] [stdout] 138 | async fn get_response(response_fromat: ResponseFormat, response: Response) -> String {
[INFO] [stdout]     |          ^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: constant `ENDPOINT` is never used
[INFO] [stdout]   --> src/tts.rs:34:7
[INFO] [stdout]    |
[INFO] [stdout] 34 | const ENDPOINT: &str = "https://api.openai.com/v1/audio/speech";
[INFO] [stdout]    |       ^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: struct `Request` is never constructed
[INFO] [stdout]   --> src/tts.rs:36:12
[INFO] [stdout]    |
[INFO] [stdout] 36 | pub struct Request {
[INFO] [stdout]    |            ^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: enum `ResponseFormat` is never used
[INFO] [stdout]   --> src/tts.rs:43:10
[INFO] [stdout]    |
[INFO] [stdout] 43 | pub enum ResponseFormat {
[INFO] [stdout]    |          ^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: enum `Voice` is never used
[INFO] [stdout]   --> src/tts.rs:54:10
[INFO] [stdout]    |
[INFO] [stdout] 54 | pub enum Voice {
[INFO] [stdout]    |          ^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: associated items `new` and `with_response_format` are never used
[INFO] [stdout]   --> src/tts.rs:69:12
[INFO] [stdout]    |
[INFO] [stdout] 68 | impl Request {
[INFO] [stdout]    | ------------ associated items in this implementation
[INFO] [stdout] 69 |     pub fn new(model: String, input: String, voice: Voice) -> Self {
[INFO] [stdout]    |            ^^^
[INFO] [stdout] ...
[INFO] [stdout] 77 |     pub fn with_response_format(mut self, response_format: ResponseFormat) -> Self {
[INFO] [stdout]    |            ^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: function `get_voice_from_text` is never used
[INFO] [stdout]   --> src/tts.rs:82:14
[INFO] [stdout]    |
[INFO] [stdout] 82 | pub async fn get_voice_from_text(req: Request, api_key: &str) -> Result<Bytes, ApiError> {
[INFO] [stdout]    |              ^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: enum `ApiError` is never used
[INFO] [stdout]   --> src/error.rs:32:10
[INFO] [stdout]    |
[INFO] [stdout] 32 | pub enum ApiError {
[INFO] [stdout]    |          ^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: constant `ENDPOINT` is never used
[INFO] [stdout]   --> src/chat.rs:50:7
[INFO] [stdout]    |
[INFO] [stdout] 50 | const ENDPOINT: &str = "https://api.openai.com/v1/chat/completions";
[INFO] [stdout]    |       ^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: struct `ChatCompletionRequest` is never constructed
[INFO] [stdout]   --> src/chat.rs:52:12
[INFO] [stdout]    |
[INFO] [stdout] 52 | pub struct ChatCompletionRequest<'a> {
[INFO] [stdout]    |            ^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: struct `ChatCompletionResponse` is never constructed
[INFO] [stdout]   --> src/chat.rs:59:12
[INFO] [stdout]    |
[INFO] [stdout] 59 | pub struct ChatCompletionResponse {
[INFO] [stdout]    |            ^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: struct `Choice` is never constructed
[INFO] [stdout]   --> src/chat.rs:70:12
[INFO] [stdout]    |
[INFO] [stdout] 70 | pub struct Choice {
[INFO] [stdout]    |            ^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: struct `Message` is never constructed
[INFO] [stdout]   --> src/chat.rs:77:12
[INFO] [stdout]    |
[INFO] [stdout] 77 | pub struct Message {
[INFO] [stdout]    |            ^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: struct `Usage` is never constructed
[INFO] [stdout]   --> src/chat.rs:83:12
[INFO] [stdout]    |
[INFO] [stdout] 83 | pub struct Usage {
[INFO] [stdout]    |            ^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: function `send_text` is never used
[INFO] [stdout]   --> src/chat.rs:88:14
[INFO] [stdout]    |
[INFO] [stdout] 88 | pub async fn send_text<'a>(
[INFO] [stdout]    |              ^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: fields `id`, `object`, `created`, `model`, and `usage` are never read
[INFO] [stdout]   --> src/chat.rs:60:9
[INFO] [stdout]    |
[INFO] [stdout] 59 | pub struct ChatCompletionResponse {
[INFO] [stdout]    |            ---------------------- fields in this struct
[INFO] [stdout] 60 |     pub id: String,
[INFO] [stdout]    |         ^^
[INFO] [stdout] 61 |     pub object: String,
[INFO] [stdout]    |         ^^^^^^
[INFO] [stdout] 62 |     pub created: u64,
[INFO] [stdout]    |         ^^^^^^^
[INFO] [stdout] 63 |     pub model: String,
[INFO] [stdout]    |         ^^^^^
[INFO] [stdout] ...
[INFO] [stdout] 66 |     pub usage: Usage,
[INFO] [stdout]    |         ^^^^^
[INFO] [stdout]    |
[INFO] [stdout]    = note: `ChatCompletionResponse` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis
[INFO] [stdout]    = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: field `0` is never read
[INFO] [stdout]   --> src/error.rs:33:11
[INFO] [stdout]    |
[INFO] [stdout] 33 |     Error(String),
[INFO] [stdout]    |     ----- ^^^^^^
[INFO] [stdout]    |     |
[INFO] [stdout]    |     field in this variant
[INFO] [stdout]    |
[INFO] [stdout]    = note: `ApiError` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis
[INFO] [stdout] help: consider changing the field to be of unit type to suppress this warning while preserving the field numbering, or remove the field
[INFO] [stdout]    |
[INFO] [stdout] 33 -     Error(String),
[INFO] [stdout] 33 +     Error(()),
[INFO] [stdout]    |
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: field `0` is never read
[INFO] [stdout]   --> src/error.rs:34:18
[INFO] [stdout]    |
[INFO] [stdout] 34 |     RequestError(reqwest::Error),
[INFO] [stdout]    |     ------------ ^^^^^^^^^^^^^^
[INFO] [stdout]    |     |
[INFO] [stdout]    |     field in this variant
[INFO] [stdout]    |
[INFO] [stdout]    = note: `ApiError` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis
[INFO] [stdout] help: consider changing the field to be of unit type to suppress this warning while preserving the field numbering, or remove the field
[INFO] [stdout]    |
[INFO] [stdout] 34 -     RequestError(reqwest::Error),
[INFO] [stdout] 34 +     RequestError(()),
[INFO] [stdout]    |
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: constant `ENDPOINT` is never used
[INFO] [stdout]   --> src/stt.rs:46:7
[INFO] [stdout]    |
[INFO] [stdout] 46 | const ENDPOINT: &str = "https://api.openai.com/v1/audio/transcriptions";
[INFO] [stdout]    |       ^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: struct `Request` is never constructed
[INFO] [stdout]   --> src/stt.rs:48:12
[INFO] [stdout]    |
[INFO] [stdout] 48 | pub struct Request {
[INFO] [stdout]    |            ^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: struct `OpenAiResponse` is never constructed
[INFO] [stdout]   --> src/stt.rs:57:12
[INFO] [stdout]    |
[INFO] [stdout] 57 | pub struct OpenAiResponse {
[INFO] [stdout]    |            ^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: enum `ResponseFormat` is never used
[INFO] [stdout]   --> src/stt.rs:61:10
[INFO] [stdout]    |
[INFO] [stdout] 61 | pub enum ResponseFormat {
[INFO] [stdout]    |          ^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: associated items `new`, `with_response_format`, `with_language`, `with_prompt`, and `with_temperature` are never used
[INFO] [stdout]    --> src/stt.rs:79:12
[INFO] [stdout]     |
[INFO] [stdout]  78 | impl Request {
[INFO] [stdout]     | ------------ associated items in this implementation
[INFO] [stdout]  79 |     pub fn new(content: Vec<u8>) -> Request {
[INFO] [stdout]     |            ^^^
[INFO] [stdout] ...
[INFO] [stdout]  89 |     pub fn with_response_format(mut self, response_format: ResponseFormat) -> Self {
[INFO] [stdout]     |            ^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] ...
[INFO] [stdout]  93 |     pub fn with_language(mut self, language: String) -> Self {
[INFO] [stdout]     |            ^^^^^^^^^^^^^
[INFO] [stdout] ...
[INFO] [stdout]  97 |     pub fn with_prompt(mut self, prompt: String) -> Self {
[INFO] [stdout]     |            ^^^^^^^^^^^
[INFO] [stdout] ...
[INFO] [stdout] 101 |     pub fn with_temperature(mut self, temperature: f32) -> Self {
[INFO] [stdout]     |            ^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: function `get_text_from_voice` is never used
[INFO] [stdout]    --> src/stt.rs:106:14
[INFO] [stdout]     |
[INFO] [stdout] 106 | pub async fn get_text_from_voice(api_key: &str, req: Request) -> Result<String, ApiError> {
[INFO] [stdout]     |              ^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: function `get_response` is never used
[INFO] [stdout]    --> src/stt.rs:138:10
[INFO] [stdout]     |
[INFO] [stdout] 138 | async fn get_response(response_fromat: ResponseFormat, response: Response) -> String {
[INFO] [stdout]     |          ^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: constant `ENDPOINT` is never used
[INFO] [stdout]   --> src/tts.rs:34:7
[INFO] [stdout]    |
[INFO] [stdout] 34 | const ENDPOINT: &str = "https://api.openai.com/v1/audio/speech";
[INFO] [stdout]    |       ^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: struct `Request` is never constructed
[INFO] [stdout]   --> src/tts.rs:36:12
[INFO] [stdout]    |
[INFO] [stdout] 36 | pub struct Request {
[INFO] [stdout]    |            ^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: enum `ResponseFormat` is never used
[INFO] [stdout]   --> src/tts.rs:43:10
[INFO] [stdout]    |
[INFO] [stdout] 43 | pub enum ResponseFormat {
[INFO] [stdout]    |          ^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: enum `Voice` is never used
[INFO] [stdout]   --> src/tts.rs:54:10
[INFO] [stdout]    |
[INFO] [stdout] 54 | pub enum Voice {
[INFO] [stdout]    |          ^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: associated items `new` and `with_response_format` are never used
[INFO] [stdout]   --> src/tts.rs:69:12
[INFO] [stdout]    |
[INFO] [stdout] 68 | impl Request {
[INFO] [stdout]    | ------------ associated items in this implementation
[INFO] [stdout] 69 |     pub fn new(model: String, input: String, voice: Voice) -> Self {
[INFO] [stdout]    |            ^^^
[INFO] [stdout] ...
[INFO] [stdout] 77 |     pub fn with_response_format(mut self, response_format: ResponseFormat) -> Self {
[INFO] [stdout]    |            ^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: function `get_voice_from_text` is never used
[INFO] [stdout]   --> src/tts.rs:82:14
[INFO] [stdout]    |
[INFO] [stdout] 82 | pub async fn get_voice_from_text(req: Request, api_key: &str) -> Result<Bytes, ApiError> {
[INFO] [stdout]    |              ^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stderr]     Finished `test` profile [unoptimized + debuginfo] target(s) in 2.29s
[INFO] running `Command { std: "docker" "inspect" "adeab0e0b030e5a911a96cae71a19e71d67213b50afc013594434014afdd6f20", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "rm" "-f" "adeab0e0b030e5a911a96cae71a19e71d67213b50afc013594434014afdd6f20", kill_on_drop: false }`
[INFO] [stdout] adeab0e0b030e5a911a96cae71a19e71d67213b50afc013594434014afdd6f20
