You've already forked comprehensive-rust
mirror of
https://github.com/google/comprehensive-rust.git
synced 2025-06-15 22:00:26 +02:00
Format imports with imports_granularity = "Module".
This commit is contained in:
@ -19,7 +19,8 @@
|
||||
extern crate panic_halt as _;
|
||||
|
||||
use cortex_m_rt::entry;
|
||||
use microbit::{hal::prelude::*, Board};
|
||||
use microbit::hal::prelude::*;
|
||||
use microbit::Board;
|
||||
|
||||
#[entry]
|
||||
fn main() -> ! {
|
||||
|
@ -19,11 +19,9 @@
|
||||
extern crate panic_halt as _;
|
||||
|
||||
use cortex_m_rt::entry;
|
||||
use nrf52833_hal::{
|
||||
gpio::{p0, Level},
|
||||
pac::Peripherals,
|
||||
prelude::*,
|
||||
};
|
||||
use nrf52833_hal::gpio::{p0, Level};
|
||||
use nrf52833_hal::pac::Peripherals;
|
||||
use nrf52833_hal::prelude::*;
|
||||
|
||||
#[entry]
|
||||
fn main() -> ! {
|
||||
|
@ -18,14 +18,12 @@
|
||||
extern crate panic_halt as _;
|
||||
|
||||
use cortex_m_rt::entry;
|
||||
use nrf52833_hal::{
|
||||
gpio::{
|
||||
p0::{self, P0_01, P0_02, P0_03},
|
||||
Disconnected, Floating, Input, Level, OpenDrain, OpenDrainConfig, Output, PushPull,
|
||||
},
|
||||
pac::Peripherals,
|
||||
prelude::*,
|
||||
use nrf52833_hal::gpio::p0::{self, P0_01, P0_02, P0_03};
|
||||
use nrf52833_hal::gpio::{
|
||||
Disconnected, Floating, Input, Level, OpenDrain, OpenDrainConfig, Output, PushPull,
|
||||
};
|
||||
use nrf52833_hal::pac::Peripherals;
|
||||
use nrf52833_hal::prelude::*;
|
||||
|
||||
// ANCHOR: Example
|
||||
#[entry]
|
||||
|
@ -13,8 +13,7 @@
|
||||
// limitations under the License.
|
||||
|
||||
// ANCHOR: Philosopher
|
||||
use std::sync::mpsc;
|
||||
use std::sync::{Arc, Mutex};
|
||||
use std::sync::{mpsc, Arc, Mutex};
|
||||
use std::thread;
|
||||
use std::time::Duration;
|
||||
|
||||
|
Reference in New Issue
Block a user