1
0
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:
Andrew Walbran
2023-04-16 19:57:59 +01:00
committed by GitHub
parent 0d30da7f23
commit 87f1976589
7 changed files with 19 additions and 24 deletions

View File

@ -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;

View File

@ -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;