From 6aed921780dbe12c058e0aa0ce8b617e404b5a87 Mon Sep 17 00:00:00 2001 From: Diego Barrios Romero Date: Sun, 21 Jun 2020 22:52:41 +0200 Subject: Use edition 2018 --- README.md | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) (limited to 'README.md') diff --git a/README.md b/README.md index 76b32b3..26492c6 100644 --- a/README.md +++ b/README.md @@ -77,15 +77,11 @@ Please find additional examples using hardware in this repository: [driver-examp [driver-examples]: https://github.com/eldruin/driver-examples ```rust -extern crate embedded_hal; use embedded_hal::adc::OneShot; -extern crate linux_embedded_hal; -#[macro_use(block)] -extern crate nb; -extern crate ads1x1x; +use linux_embedded_hal::I2cdev; +use nb::block; use ads1x1x::{channel, Ads1x1x, SlaveAddr}; -use linux_embedded_hal::I2cdev; fn main() { let dev = I2cdev::new("/dev/i2c-1").unwrap(); -- cgit v1.2.3-54-g00ecf