You've already forked comprehensive-rust
mirror of
https://github.com/google/comprehensive-rust.git
synced 2025-06-18 07:07:35 +02:00
cargo fmt with imports_granularity = "module" (#564)
This commit is contained in:
@ -23,17 +23,13 @@ use cortex_m_rt::entry;
|
||||
// ANCHOR_END: top
|
||||
use core::cmp::{max, min};
|
||||
use lsm303agr::{AccelOutputDataRate, Lsm303agr, MagOutputDataRate};
|
||||
use microbit::{
|
||||
display::blocking::Display,
|
||||
hal::{
|
||||
prelude::*,
|
||||
twim::Twim,
|
||||
uarte::{Baudrate, Parity, Uarte},
|
||||
Timer,
|
||||
},
|
||||
pac::twim0::frequency::FREQUENCY_A,
|
||||
Board,
|
||||
};
|
||||
use microbit::display::blocking::Display;
|
||||
use microbit::hal::prelude::*;
|
||||
use microbit::hal::twim::Twim;
|
||||
use microbit::hal::uarte::{Baudrate, Parity, Uarte};
|
||||
use microbit::hal::Timer;
|
||||
use microbit::pac::twim0::frequency::FREQUENCY_A;
|
||||
use microbit::Board;
|
||||
|
||||
const COMPASS_SCALE: i32 = 30000;
|
||||
const ACCELEROMETER_SCALE: i32 = 700;
|
||||
|
@ -12,10 +12,8 @@
|
||||
// See the License for the specific language governing permissions and
|
||||
// limitations under the License.
|
||||
|
||||
use core::{
|
||||
fmt::{self, Write},
|
||||
ptr::{addr_of, addr_of_mut},
|
||||
};
|
||||
use core::fmt::{self, Write};
|
||||
use core::ptr::{addr_of, addr_of_mut};
|
||||
|
||||
// ANCHOR: Flags
|
||||
use bitflags::bitflags;
|
||||
|
Reference in New Issue
Block a user