Skip to content

Commit

Permalink
Fix CI
Browse files Browse the repository at this point in the history
  • Loading branch information
rmja committed Dec 19, 2023
1 parent c401b51 commit b2a727a
Showing 1 changed file with 7 additions and 6 deletions.
13 changes: 7 additions & 6 deletions examples/src/bin/std-tokio.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,11 @@
#![allow(incomplete_features)]
use atat_examples::common;

use std::process::exit;

use atat::{asynch::AtatClient, AtatIngress, Config, DefaultDigester, Ingress};
use atat::{
asynch::AtatClient, AtatIngress, Config, DefaultDigester, Ingress, ResponseChannel, UrcChannel,
};
use embedded_io_adapters::tokio_1::FromTokio;
use std::process::exit;
use tokio_serial::SerialStream;

const INGRESS_BUF_SIZE: usize = 1024;
Expand All @@ -19,16 +20,16 @@ async fn main() -> ! {
let (reader, writer) = SerialStream::pair().expect("Failed to create serial pair");

static RES_CHANNEL: ResponseChannel<INGRESS_BUF_SIZE> = ResponseChannel::new();
static URC_CHANNEL: UrcChannel<Urc, URC_CAPACITY, URC_SUBSCRIBERS> = UrcChannel::new();
static URC_CHANNEL: UrcChannel<common::Urc, URC_CAPACITY, URC_SUBSCRIBERS> = UrcChannel::new();
let ingress = Ingress::new(
DefaultDigester::<common::Urc>::default(),
RES_CHANNEL.publisher(),

Check failure on line 26 in examples/src/bin/std-tokio.rs

View workflow job for this annotation

GitHub Actions / Build (x86_64-unknown-linux-gnu, derive)

mismatched types

Check failure on line 26 in examples/src/bin/std-tokio.rs

View workflow job for this annotation

GitHub Actions / Build (x86_64-unknown-linux-gnu, derive, log)

mismatched types

Check failure on line 26 in examples/src/bin/std-tokio.rs

View workflow job for this annotation

GitHub Actions / Test

mismatched types
URC_CHANNEL.publisher(),
);
let mut client = Client::new(
let mut client = AtatClient::new(

Check failure on line 29 in examples/src/bin/std-tokio.rs

View workflow job for this annotation

GitHub Actions / Build (x86_64-unknown-linux-gnu, derive)

no function or associated item named `new` found for trait `atat::asynch::AtatClient`

Check failure on line 29 in examples/src/bin/std-tokio.rs

View workflow job for this annotation

GitHub Actions / Build (x86_64-unknown-linux-gnu, derive, log)

no function or associated item named `new` found for trait `atat::asynch::AtatClient`

Check failure on line 29 in examples/src/bin/std-tokio.rs

View workflow job for this annotation

GitHub Actions / Test

no function or associated item named `new` found for trait `atat::asynch::AtatClient`
FromTokio::new(writer),
RES_CHANNEL.subscriber(),
atat::Config::default(),
Config::default(),
);

tokio::spawn(ingress_task(ingress, FromTokio::new(reader)));
Expand Down

0 comments on commit b2a727a

Please sign in to comment.