From bf7456fdb6f2056dcbc67bcf7808d59a1de324b7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Henrik=20Tj=C3=A4der?= Date: Wed, 1 Feb 2023 22:55:38 +0100 Subject: [PATCH] RTIC: Examples cargo fmt --- rtic/examples/async-channel-no-receiver.rs | 3 --- rtic/examples/async-channel-no-sender.rs | 4 +--- rtic/examples/async-channel-try.rs | 1 - 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 ffb78e4e03..02e6a22caa 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 58e010d585..0bdc7cb5ee 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 4a79935e82..4c369edbf4 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 6c79cf54ca..aa673dd9e7 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)]