Skip to content

Commit 934bc1f

Browse files
committed
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 diesel-rs#1739
1 parent ec36577 commit 934bc1f

2 files changed

Lines changed: 6 additions & 1 deletion

File tree

CHANGELOG.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,12 @@ All user visible changes to this project will be documented in this file.
44
This project adheres to [Semantic Versioning](http://semver.org/), as described
55
for Rust libraries in [RFC #1105](https://github.com/rust-lang/rfcs/blob/master/text/1105-api-evolution.md)
66

7+
## Unreleased
8+
9+
### Fixed
10+
11+
* `embed_migrations!` will no longer emit an unused import warning
12+
713
## [1.3.1] - 2018-05-23
814

915
### Fixed

diesel_migrations/migrations_macros/src/embed_migrations.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,6 @@ pub fn derive_embed_migrations(input: &syn::DeriveInput) -> quote::Tokens {
6666
extern crate diesel_migrations;
6767

6868
use self::diesel_migrations::*;
69-
use self::diesel::migration::*;
7069
use self::diesel::connection::SimpleConnection;
7170
use std::io;
7271

0 commit comments

Comments
 (0)