diff --git a/.travis.yml b/.travis.yml index a7cc51a5f..be4e5a45d 100644 --- a/.travis.yml +++ b/.travis.yml @@ -1,5 +1,9 @@ language: rust +env: + global: + RUSTFLAGS='-D warnings' + matrix: include: - env: TARGET=x86_64-unknown-linux-gnu diff --git a/Cargo.toml b/Cargo.toml index 239db690e..5df0c8ebc 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -21,7 +21,7 @@ version = "1.0.2" version = "0.1.1" [dev-dependencies] -stm32f30x = "0.6.0" +stm32f30x = "0.8.0" futures = "0.1.17" [features] diff --git a/src/fmt.rs b/src/fmt.rs index 3f66c89f3..d9d0446c0 100644 --- a/src/fmt.rs +++ b/src/fmt.rs @@ -3,7 +3,7 @@ //! TODO write example of usage use core::fmt::{Result, Write}; -impl Write for ::serial::Write +impl Write for dyn (::serial::Write) where Word: From, { diff --git a/src/lib.rs b/src/lib.rs index 1a903081a..5e07ec736 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -683,7 +683,6 @@ //! ``` #![deny(missing_docs)] -#![deny(warnings)] #![no_std] #[macro_use]