From 934bc1fab145fd9e9b3679cab568bf81ed8bcffd Mon Sep 17 00:00:00 2001 From: Sean Griffin Date: Fri, 1 Jun 2018 11:56:57 -0600 Subject: [PATCH] Remove unused import from `embed_migrations!` The changes for barrel support led to `diesel_migrations` exporting everything required by this macro, leading to the warning being generated. Fixes #1739 --- CHANGELOG.md | 6 ++++++ diesel_migrations/migrations_macros/src/embed_migrations.rs | 1 - 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index cd65d9e3f9c3..564f8aab7a87 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -4,6 +4,12 @@ All user visible changes to this project will be documented in this file. This project adheres to [Semantic Versioning](http://semver.org/), as described for Rust libraries in [RFC #1105](https://github.com/rust-lang/rfcs/blob/master/text/1105-api-evolution.md) +## Unreleased + +### Fixed + +* `embed_migrations!` will no longer emit an unused import warning + ## [1.3.1] - 2018-05-23 ### Fixed diff --git a/diesel_migrations/migrations_macros/src/embed_migrations.rs b/diesel_migrations/migrations_macros/src/embed_migrations.rs index 07bc8476024d..612874221041 100644 --- a/diesel_migrations/migrations_macros/src/embed_migrations.rs +++ b/diesel_migrations/migrations_macros/src/embed_migrations.rs @@ -66,7 +66,6 @@ pub fn derive_embed_migrations(input: &syn::DeriveInput) -> quote::Tokens { extern crate diesel_migrations; use self::diesel_migrations::*; - use self::diesel::migration::*; use self::diesel::connection::SimpleConnection; use std::io;