Upgrade to rust 2018 edition

This commit is contained in:
Michael Watzko 2020-06-10 16:52:21 +02:00
commit 2e1aa239d2
2 changed files with 3 additions and 6 deletions

View file

@ -1,17 +1,13 @@
#![no_std]
#![deny(intra_doc_link_resolution_failure)]
extern crate byteorder;
extern crate embedded_hal as hal;
#[macro_use(block)]
extern crate nb;
use hal::digital::v2::OutputPin;
use hal::spi::FullDuplex;
use byteorder::BigEndian;
use byteorder::ByteOrder;
use embedded_hal::digital::v2::OutputPin;
use embedded_hal::spi::FullDuplex;
const COMMAND_READ: u8 = 0x00 << 2;
const COMMAND_WRITE: u8 = 0x01 << 2;