diff --git a/Cargo.toml b/Cargo.toml index 87581a2..147ae69 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -8,6 +8,7 @@ description = "A platform agnostic driver for the Si5351 clock generator" license = "MIT OR Apache-2.0" exclude = [".travis.yml", ".gitignore"] repository = "https://github.com/ilya-epifanov/si5351" +edition = "2018" [badges.travis-ci] branch = "master" diff --git a/src/lib.rs b/src/lib.rs index f4d637b..8b86eb2 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -85,7 +85,7 @@ extern crate bitflags; extern crate embedded_hal as hal; use core::mem; -use hal::blocking::i2c::{Write, WriteRead}; +use crate::hal::blocking::i2c::{Write, WriteRead}; #[derive(Debug)] pub enum Error {