diff options
| author | Henrik Tjäder <henrik@tjaders.com> | 2023-02-01 22:55:38 +0100 |
|---|---|---|
| committer | Henrik Tjäder <henrik@tjaders.com> | 2023-03-01 00:35:11 +0100 |
| commit | 0f5178a48fd29252df2bb41e30a36fc18a5bcf52 (patch) | |
| tree | e65663d2f84c2e22c85d182f4e3e32db7b538777 | |
| parent | 4e639e1f68ea392181aafb754118ec61dfe7ffbd (diff) | |
RTIC: Examples cargo fmt
| -rw-r--r-- | rtic/examples/async-channel-no-receiver.rs | 3 | ||||
| -rw-r--r-- | rtic/examples/async-channel-no-sender.rs | 4 | ||||
| -rw-r--r-- | rtic/examples/async-channel-try.rs | 1 | ||||
| -rw-r--r-- | rtic/examples/async-delay.rs | 2 |
4 files changed, 2 insertions, 8 deletions
diff --git a/rtic/examples/async-channel-no-receiver.rs b/rtic/examples/async-channel-no-receiver.rs index ffb78e4..02e6a22 100644 --- a/rtic/examples/async-channel-no-receiver.rs +++ b/rtic/examples/async-channel-no-receiver.rs @@ -29,12 +29,9 @@ mod app { (Shared {}, Local {}) } - #[task] async fn sender1(_c: sender1::Context, mut sender: Sender<'static, u32, CAPACITY>) { - hprintln!("Sender 1 sending: 1 {:?}", sender.send(1).await); debug::exit(debug::EXIT_SUCCESS); // Exit QEMU simulator } - } diff --git a/rtic/examples/async-channel-no-sender.rs b/rtic/examples/async-channel-no-sender.rs index 58e010d..0bdc7cb 100644 --- a/rtic/examples/async-channel-no-sender.rs +++ b/rtic/examples/async-channel-no-sender.rs @@ -33,8 +33,6 @@ mod app { async fn receiver(_c: receiver::Context, mut receiver: Receiver<'static, u32, CAPACITY>) { hprintln!("Receiver got: {:?}", receiver.recv().await); - debug::exit(debug::EXIT_SUCCESS); // Exit QEMU simulator + debug::exit(debug::EXIT_SUCCESS); // Exit QEMU simulator } - - } diff --git a/rtic/examples/async-channel-try.rs b/rtic/examples/async-channel-try.rs index 4a79935..4c369ed 100644 --- a/rtic/examples/async-channel-try.rs +++ b/rtic/examples/async-channel-try.rs @@ -44,5 +44,4 @@ mod app { hprintln!("Sender 1 try sending: 2 {:?}", sender.try_send(2)); debug::exit(debug::EXIT_SUCCESS); // Exit QEMU simulator } - } diff --git a/rtic/examples/async-delay.rs b/rtic/examples/async-delay.rs index 6c79cf5..aa673dd 100644 --- a/rtic/examples/async-delay.rs +++ b/rtic/examples/async-delay.rs @@ -1,5 +1,5 @@ // examples/async-delay.rs -// +// #![no_main] #![no_std] #![feature(type_alias_impl_trait)] |
