Skip to content

feature(*): Full async implementation #39

feature(*): Full async implementation

feature(*): Full async implementation #39

Triggered via pull request July 18, 2024 07:04
Status Failure
Total duration 1m 8s
Artifacts

ci.yml

on: pull_request
Fit to window
Zoom out
Zoom in

Annotations

19 errors and 33 warnings
Test: src/network.rs#L17
failed to resolve: use of undeclared crate or module `defmt`
Test: src/command/wifi/types.rs#L429
failed to resolve: use of undeclared crate or module `defmt`
Test: src/network.rs#L19
cannot find attribute `defmt` in this scope
Test: src/command/wifi/mod.rs#L41
method `as_bytes` is not a member of trait `atat::AtatCmd`
Test: src/command/wifi/mod.rs#L42
cannot find function `to_vec` in crate `atat::serde_at`
Test: src/command/wifi/mod.rs#L37
trait takes 0 generic arguments but 1 generic argument was supplied
Test: src/asynch/control.rs#L481
`?` operator has incompatible types
Test: src/asynch/control.rs#L507
`?` operator has incompatible types
Test: src/command/wifi/mod.rs#L37
not all trait items implemented, missing: `MAX_LEN`, `write`
Test
The process '/home/runner/.cargo/bin/cargo' failed with exit code 101
not all trait items implemented, missing: `MAX_LEN`, `write`: src/command/wifi/mod.rs#L37
error[E0046]: not all trait items implemented, missing: `MAX_LEN`, `write` --> src/command/wifi/mod.rs:37:1 | 37 | impl<'a> atat::AtatCmd<{ ATAT_SETWIFISTATIONCONFIG_LEN + 12usize }> for SetWifiStationConfig<'a> { | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ missing `MAX_LEN`, `write` in implementation | = help: implement the missing item: `const MAX_LEN: usize = 42;` = help: implement the missing item: `fn write(&self, _: &mut [u8]) -> usize { todo!() }`
`?` operator has incompatible types: src/asynch/control.rs#L507
error[E0308]: `?` operator has incompatible types --> src/asynch/control.rs:507:29 | 507 | ... heapless::String::try_from(passphrase).map_err(|_| Error::Overflow)?, | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ expected `&str`, found `String<_>` | = note: `?` operator cannot convert from `heapless::String<_>` to `&str` = note: expected reference `&str` found struct `heapless::String<_>` help: consider borrowing here | 507 | &heapless::String::try_from(passphrase).map_err(|_| Error::Overflow)?, | +
`?` operator has incompatible types: src/asynch/control.rs#L481
error[E0308]: `?` operator has incompatible types --> src/asynch/control.rs:481:21 | 481 | heapless::String::try_from(ssid).map_err(|_| Error::Overflow)?, | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ expected `&str`, found `String<_>` | = note: `?` operator cannot convert from `heapless::String<_>` to `&str` = note: expected reference `&str` found struct `heapless::String<_>` help: consider borrowing here | 481 | &heapless::String::try_from(ssid).map_err(|_| Error::Overflow)?, | +
trait takes 0 generic arguments but 1 generic argument was supplied: src/command/wifi/mod.rs#L37
error[E0107]: trait takes 0 generic arguments but 1 generic argument was supplied --> src/command/wifi/mod.rs:37:16 | 37 | impl<'a> atat::AtatCmd<{ ATAT_SETWIFISTATIONCONFIG_LEN + 12usize }> for SetWifiStationConfig<'a> { | ^^^^^^^ expected 0 generic arguments | note: trait defined here, with 0 generic parameters --> /home/runner/.cargo/git/checkouts/atat-1e6ba3d4ab83bd35/a466836/atat/src/traits.rs:63:11 | 63 | pub trait AtatCmd { | ^^^^^^^
cannot find function `to_vec` in crate `atat::serde_at`: src/command/wifi/mod.rs#L42
error[E0425]: cannot find function `to_vec` in crate `atat::serde_at` --> src/command/wifi/mod.rs:42:31 | 42 | match atat::serde_at::to_vec( | ^^^^^^ not found in `atat::serde_at` | note: found an item that was configured out --> /home/runner/.cargo/git/checkouts/atat-1e6ba3d4ab83bd35/a466836/serde_at/src/lib.rs:27:32 | 27 | pub use self::ser::{to_string, to_vec}; | ^^^^^^ = note: the item is gated behind the `heapless` feature
method `as_bytes` is not a member of trait `atat::AtatCmd`: src/command/wifi/mod.rs#L41
error[E0407]: method `as_bytes` is not a member of trait `atat::AtatCmd` --> src/command/wifi/mod.rs:41:5 | 41 | / fn as_bytes(&self) -> atat::heapless::Vec<u8, { ATAT_SETWIFISTATIONCONFIG_LEN + 12usize }> { 42 | | match atat::serde_at::to_vec( 43 | | self, 44 | | "+UWSC", ... | 54 | | } 55 | | } | |_____^ not a member of trait `atat::AtatCmd`
failed to resolve: use of undeclared crate or module `defmt`: src/command/wifi/types.rs#L429
error[E0433]: failed to resolve: use of undeclared crate or module `defmt` --> src/command/wifi/types.rs:429:45 | 429 | #[derive(Debug, Clone, PartialEq, AtatEnum, defmt::Format)] | ^^^^^ use of undeclared crate or module `defmt`
failed to resolve: use of undeclared crate or module `defmt`: src/network.rs#L17
error[E0433]: failed to resolve: use of undeclared crate or module `defmt` --> src/network.rs:17:17 | 17 | #[derive(Debug, defmt::Format)] | ^^^^^ use of undeclared crate or module `defmt`
clippy
Clippy had exited with the 101 exit code
rustfmt
The following actions uses node12 which is deprecated and will be forced to run on node16: actions/checkout@v2, actions-rs/toolchain@v1, actions-rs/cargo@v1. For more info: https://github.blog/changelog/2023-06-13-github-actions-all-actions-will-run-on-node16-instead-of-node12-by-default/
rustfmt
The following actions uses Node.js version which is deprecated and will be forced to run on node20: actions/checkout@v2, actions-rs/toolchain@v1, actions-rs/cargo@v1. For more info: https://github.blog/changelog/2024-03-07-github-actions-all-actions-will-run-on-node20-instead-of-node16-by-default/
rustfmt
The `set-output` command is deprecated and will be disabled soon. Please upgrade to using Environment Files. For more information see: https://github.blog/changelog/2022-10-11-github-actions-deprecating-save-state-and-set-output-commands/
rustfmt
The `set-output` command is deprecated and will be disabled soon. Please upgrade to using Environment Files. For more information see: https://github.blog/changelog/2022-10-11-github-actions-deprecating-save-state-and-set-output-commands/
rustfmt
The `set-output` command is deprecated and will be disabled soon. Please upgrade to using Environment Files. For more information see: https://github.blog/changelog/2022-10-11-github-actions-deprecating-save-state-and-set-output-commands/
rustfmt
The `set-output` command is deprecated and will be disabled soon. Please upgrade to using Environment Files. For more information see: https://github.blog/changelog/2022-10-11-github-actions-deprecating-save-state-and-set-output-commands/
Test
The following actions uses node12 which is deprecated and will be forced to run on node16: actions/checkout@v2, actions-rs/toolchain@v1, actions-rs/cargo@v1. For more info: https://github.blog/changelog/2023-06-13-github-actions-all-actions-will-run-on-node16-instead-of-node12-by-default/
Test
The following actions uses Node.js version which is deprecated and will be forced to run on node20: actions/checkout@v2, actions-rs/toolchain@v1, actions-rs/cargo@v1. For more info: https://github.blog/changelog/2024-03-07-github-actions-all-actions-will-run-on-node20-instead-of-node16-by-default/
Test
The `set-output` command is deprecated and will be disabled soon. Please upgrade to using Environment Files. For more information see: https://github.blog/changelog/2022-10-11-github-actions-deprecating-save-state-and-set-output-commands/
Test
The `set-output` command is deprecated and will be disabled soon. Please upgrade to using Environment Files. For more information see: https://github.blog/changelog/2022-10-11-github-actions-deprecating-save-state-and-set-output-commands/
Test
The `set-output` command is deprecated and will be disabled soon. Please upgrade to using Environment Files. For more information see: https://github.blog/changelog/2022-10-11-github-actions-deprecating-save-state-and-set-output-commands/
Test
The `set-output` command is deprecated and will be disabled soon. Please upgrade to using Environment Files. For more information see: https://github.blog/changelog/2022-10-11-github-actions-deprecating-save-state-and-set-output-commands/
Test: src/asynch/control.rs#L435
unused variable: `ssid`
Test: src/asynch/control.rs#L435
unused variable: `channel`
Test: src/asynch/control.rs#L440
unused variable: `ssid`
Test: src/asynch/control.rs#L440
unused variable: `passphrase`
Test: src/asynch/control.rs#L440
unused variable: `channel`
Test: src/asynch/control.rs#L523
unreachable call
Test: src/command/wifi/mod.rs#L63
unused variable: `e`
Test
`ublox-short-range-rs` (lib) generated 7 warnings
unused variable: `e`: src/command/wifi/mod.rs#L63
warning: unused variable: `e` --> src/command/wifi/mod.rs:63:73 | 63 | atat::serde_at::from_slice::<NoResponse>(resp).map_err(|e| atat::Error::Parse) | ^ help: if this is intentional, prefix it with an underscore: `_e`
unreachable call: src/asynch/control.rs#L523
warning: unreachable call --> src/asynch/control.rs:523:39 | 523 | config_param: WifiStationConfig::WpaPskOrPassphrase(todo!("hex values?!")), | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ --------------------- any code following this expression is unreachable | | | unreachable call | = note: `#[warn(unreachable_code)]` on by default
unused variable: `channel`: src/asynch/control.rs#L440
warning: unused variable: `channel` --> src/asynch/control.rs:440:73 | 440 | pub async fn start_ap_wpa2(&mut self, ssid: &str, passphrase: &str, channel: u8) { | ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_channel`
unused variable: `passphrase`: src/asynch/control.rs#L440
warning: unused variable: `passphrase` --> src/asynch/control.rs:440:55 | 440 | pub async fn start_ap_wpa2(&mut self, ssid: &str, passphrase: &str, channel: u8) { | ^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_passphrase`
unused variable: `ssid`: src/asynch/control.rs#L440
warning: unused variable: `ssid` --> src/asynch/control.rs:440:43 | 440 | pub async fn start_ap_wpa2(&mut self, ssid: &str, passphrase: &str, channel: u8) { | ^^^^ help: if this is intentional, prefix it with an underscore: `_ssid`
unused variable: `ssid`: src/asynch/control.rs#L435
warning: unused variable: `ssid` --> src/asynch/control.rs:435:43 | 435 | pub async fn start_ap_open(&mut self, ssid: &str, channel: u8) { | ^^^^ help: if this is intentional, prefix it with an underscore: `_ssid` | = note: `#[warn(unused_variables)]` on by default
redundant field names in struct initialization: src/asynch/control.rs#L151
warning: redundant field names in struct initialization --> src/asynch/control.rs:151:13 | 151 | urc_channel: urc_channel, | ^^^^^^^^^^^^^^^^^^^^^^^^ help: replace it with: `urc_channel` | = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#redundant_field_names = note: `#[warn(clippy::redundant_field_names)]` on by default
clippy
The following actions uses node12 which is deprecated and will be forced to run on node16: actions/checkout@v2, actions-rs/toolchain@v1, actions-rs/clippy-check@v1. For more info: https://github.blog/changelog/2023-06-13-github-actions-all-actions-will-run-on-node16-instead-of-node12-by-default/
clippy
The following actions uses Node.js version which is deprecated and will be forced to run on node20: actions/checkout@v2, actions-rs/toolchain@v1, actions-rs/clippy-check@v1. For more info: https://github.blog/changelog/2024-03-07-github-actions-all-actions-will-run-on-node20-instead-of-node16-by-default/
clippy
The `set-output` command is deprecated and will be disabled soon. Please upgrade to using Environment Files. For more information see: https://github.blog/changelog/2022-10-11-github-actions-deprecating-save-state-and-set-output-commands/
clippy
The `set-output` command is deprecated and will be disabled soon. Please upgrade to using Environment Files. For more information see: https://github.blog/changelog/2022-10-11-github-actions-deprecating-save-state-and-set-output-commands/
clippy
The `set-output` command is deprecated and will be disabled soon. Please upgrade to using Environment Files. For more information see: https://github.blog/changelog/2022-10-11-github-actions-deprecating-save-state-and-set-output-commands/
clippy
The `set-output` command is deprecated and will be disabled soon. Please upgrade to using Environment Files. For more information see: https://github.blog/changelog/2022-10-11-github-actions-deprecating-save-state-and-set-output-commands/