Skip to content

add routes endpoint #45

add routes endpoint

add routes endpoint #45

Triggered via pull request October 9, 2024 08:56
Status Failure
Total duration 4m 29s
Billable time 5m
Artifacts

build_cli.yaml

on: pull_request
Matrix: build
Fit to window
Zoom out
Zoom in

Annotations

5 errors and 1 warning
Create binary for x86_64-unknown-linux-gnu: fpx-workers/src/data.rs#L58
[clippy] reported by reviewdog 🐶 error[E0277]: the trait bound `for<'a> T: serde::Deserialize<'a>` is not satisfied --> fpx-workers/src/data.rs:58:14 | 58 | .first(None) | ^^^^^ the trait `for<'a> serde::Deserialize<'a>` is not implemented for `T` | = note: for local types consider adding `#[derive(serde::Deserialize)]` to your `T` type = note: for types from other crates check whether the crate offers a `serde` feature flag note: required by a bound in `worker::D1PreparedStatement::first` --> /home/runner/.cargo/registry/src/index.crates.io-6f17d22bba15001f/worker-0.3.4/src/d1/mod.rs:285:12 | 283 | pub async fn first<T>(&self, col_name: Option<&str>) -> Result<Option<T>> | ----- required by a bound in this associated function 284 | where 285 | T: for<'a> Deserialize<'a>, | ^^^^^^^^^^^^^^^^^^^^^^^ required by this bound in `D1PreparedStatement::first` help: consider restricting type parameter `T` | 46 | async fn fetch_optional<T: for<'a> serde::Deserialize<'a>>( | ++++++++++++++++++++++++++++++++ Raw Output: fpx-workers/src/data.rs:58:14:e:error[E0277]: the trait bound `for<'a> T: serde::Deserialize<'a>` is not satisfied --> fpx-workers/src/data.rs:58:14 | 58 | .first(None) | ^^^^^ the trait `for<'a> serde::Deserialize<'a>` is not implemented for `T` | = note: for local types consider adding `#[derive(serde::Deserialize)]` to your `T` type = note: for types from other crates check whether the crate offers a `serde` feature flag note: required by a bound in `worker::D1PreparedStatement::first` --> /home/runner/.cargo/registry/src/index.crates.io-6f17d22bba15001f/worker-0.3.4/src/d1/mod.rs:285:12 | 283 | pub async fn first<T>(&self, col_name: Option<&str>) -> Result<Option<T>> | ----- required by a bound in this associated function 284 | where 285 | T: for<'a> Deserialize<'a>, | ^^^^^^^^^^^^^^^^^^^^^^^ required by this bound in `D1PreparedStatement::first` help: consider restricting type parameter `T` | 46 | async fn fetch_optional<T: for<'a> serde::Deserialize<'a>>( | ++++++++++++++++++++++++++++++++ __END__
Create binary for x86_64-unknown-linux-gnu: fpx-workers/src/data.rs#L307
[clippy] reported by reviewdog 🐶 error[E0061]: this method takes 2 arguments but 1 argument was supplied --> fpx-workers/src/data.rs:307:31 | 307 | let routes = self.fetch_all(&self.sql_builder.routes_get()).await?; | ^^^^^^^^^-------------------------------- argument #2 of type `&[wasm_bindgen::JsValue]` is missing | note: method defined here --> fpx-workers/src/data.rs:66:14 | 66 | async fn fetch_all<T>(&self, query: impl Into<String>, values: &[JsValue]) -> Result<Vec<T>> | ^^^^^^^^^ ------------------------ ------------------ help: provide the argument | 307 | let routes = self.fetch_all(&self.sql_builder.routes_get(), /* &[wasm_bindgen::JsValue] */).await?; | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ Raw Output: fpx-workers/src/data.rs:307:40:e:error[E0061]: this method takes 2 arguments but 1 argument was supplied --> fpx-workers/src/data.rs:307:31 | 307 | let routes = self.fetch_all(&self.sql_builder.routes_get()).await?; | ^^^^^^^^^-------------------------------- argument #2 of type `&[wasm_bindgen::JsValue]` is missing | note: method defined here --> fpx-workers/src/data.rs:66:14 | 66 | async fn fetch_all<T>(&self, query: impl Into<String>, values: &[JsValue]) -> Result<Vec<T>> | ^^^^^^^^^ ------------------------ ------------------ help: provide the argument | 307 | let routes = self.fetch_all(&self.sql_builder.routes_get(), /* &[wasm_bindgen::JsValue] */).await?; | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ __END__
Create binary for x86_64-unknown-linux-gnu: fpx-workers/src/data.rs#L326
[clippy] reported by reviewdog 🐶 error[E0277]: the trait bound `wasm_bindgen::JsValue: std::convert::From<fpx::data::models::RouteOrigin>` is not satisfied --> fpx-workers/src/data.rs:326:40 | 326 | route.route_origin.into(), | ^^^^ the trait `std::convert::From<fpx::data::models::RouteOrigin>` is not implemented for `wasm_bindgen::JsValue`, which is required by `fpx::data::models::RouteOrigin: std::convert::Into<_>` | = help: the following other types implement trait `std::convert::From<T>`: `wasm_bindgen::JsValue` implements `std::convert::From<&'a T>` `wasm_bindgen::JsValue` implements `std::convert::From<&'a std::string::String>` `wasm_bindgen::JsValue` implements `std::convert::From<&'a str>` `wasm_bindgen::JsValue` implements `std::convert::From<&'a worker::D1Type<'a>>` `wasm_bindgen::JsValue` implements `std::convert::From<&fpx::data::models::HexEncodedId>` `wasm_bindgen::JsValue` implements `std::convert::From<&worker::CfProperties>` `wasm_bindgen::JsValue` implements `std::convert::From<*const T>` `wasm_bindgen::JsValue` implements `std::convert::From<*mut T>` and 216 others = note: required for `fpx::data::models::RouteOrigin` to implement `std::convert::Into<wasm_bindgen::JsValue>` Raw Output: fpx-workers/src/data.rs:326:40:e:error[E0277]: the trait bound `wasm_bindgen::JsValue: std::convert::From<fpx::data::models::RouteOrigin>` is not satisfied --> fpx-workers/src/data.rs:326:40 | 326 | route.route_origin.into(), | ^^^^ the trait `std::convert::From<fpx::data::models::RouteOrigin>` is not implemented for `wasm_bindgen::JsValue`, which is required by `fpx::data::models::RouteOrigin: std::convert::Into<_>` | = help: the following other types implement trait `std::convert::From<T>`: `wasm_bindgen::JsValue` implements `std::convert::From<&'a T>` `wasm_bindgen::JsValue` implements `std::convert::From<&'a std::string::String>` `wasm_bindgen::JsValue` implements `std::convert::From<&'a str>` `wasm_bindgen::JsValue` implements `std::convert::From<&'a worker::D1Type<'a>>` `wasm_bindgen::JsValue` implements `std::convert::From<&fpx::data::models::HexEncodedId>` `wasm_bindgen::JsValue` implements `std::convert::From<&worker::CfProperties>` `wasm_bindgen::JsValue` implements `std::convert::From<*const T>` `wasm_bindgen::JsValue` implements `std::convert::From<*mut T>` and 216 others = note: required for `fpx::data::models::RouteOrigin` to implement `std::convert::Into<wasm_bindgen::JsValue>` __END__
Create binary for x86_64-unknown-linux-gnu: fpx-workers/src/data.rs#L328
[clippy] reported by reviewdog 🐶 error[E0277]: the trait bound `wasm_bindgen::JsValue: std::convert::From<fpx::data::models::RequestType>` is not satisfied --> fpx-workers/src/data.rs:328:40 | 328 | route.request_type.into(), | ^^^^ the trait `std::convert::From<fpx::data::models::RequestType>` is not implemented for `wasm_bindgen::JsValue`, which is required by `fpx::data::models::RequestType: std::convert::Into<_>` | = help: the following other types implement trait `std::convert::From<T>`: `wasm_bindgen::JsValue` implements `std::convert::From<&'a T>` `wasm_bindgen::JsValue` implements `std::convert::From<&'a std::string::String>` `wasm_bindgen::JsValue` implements `std::convert::From<&'a str>` `wasm_bindgen::JsValue` implements `std::convert::From<&'a worker::D1Type<'a>>` `wasm_bindgen::JsValue` implements `std::convert::From<&fpx::data::models::HexEncodedId>` `wasm_bindgen::JsValue` implements `std::convert::From<&worker::CfProperties>` `wasm_bindgen::JsValue` implements `std::convert::From<*const T>` `wasm_bindgen::JsValue` implements `std::convert::From<*mut T>` and 216 others = note: required for `fpx::data::models::RequestType` to implement `std::convert::Into<wasm_bindgen::JsValue>` Raw Output: fpx-workers/src/data.rs:328:40:e:error[E0277]: the trait bound `wasm_bindgen::JsValue: std::convert::From<fpx::data::models::RequestType>` is not satisfied --> fpx-workers/src/data.rs:328:40 | 328 | route.request_type.into(), | ^^^^ the trait `std::convert::From<fpx::data::models::RequestType>` is not implemented for `wasm_bindgen::JsValue`, which is required by `fpx::data::models::RequestType: std::convert::Into<_>` | = help: the following other types implement trait `std::convert::From<T>`: `wasm_bindgen::JsValue` implements `std::convert::From<&'a T>` `wasm_bindgen::JsValue` implements `std::convert::From<&'a std::string::String>` `wasm_bindgen::JsValue` implements `std::convert::From<&'a str>` `wasm_bindgen::JsValue` implements `std::convert::From<&'a worker::D1Type<'a>>` `wasm_bindgen::JsValue` implements `std::convert::From<&fpx::data::models::HexEncodedId>` `wasm_bindgen::JsValue` implements `std::convert::From<&worker::CfProperties>` `wasm_bindgen::JsValue` implements `std::convert::From<*const T>` `wasm_bindgen::JsValue` implements `std::convert::From<*mut T>` and 216 others = note: required for `fpx::data::models::RequestType` to implement `std::convert::Into<wasm_bindgen::JsValue>` __END__
Create binary for x86_64-unknown-linux-gnu
reviewdog exited with status code: 1
Create binary for x86_64-unknown-linux-gnu
The following actions use a deprecated Node.js version and will be forced to run on node20: giraffate/clippy-action@v1. For more info: https://github.blog/changelog/2024-03-07-github-actions-all-actions-will-run-on-node20-instead-of-node16-by-default/