From d43167801156e088467e9520cc3c2aa4d4ddc774 Mon Sep 17 00:00:00 2001 From: Ilya Epifanov Date: Sun, 20 Jan 2019 23:13:40 +0100 Subject: [PATCH] 2018 edition --- Cargo.toml | 1 + src/lib.rs | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) 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 {