Skip to content

Commit

Permalink
Remove unused import from embed_migrations!
Browse files Browse the repository at this point in the history
The changes for barrel support led to `diesel_migrations` exporting
everything required by this macro, leading to the warning being
generated.

Fixes #1739
  • Loading branch information
sgrif committed Jun 1, 2018
1 parent ec36577 commit 934bc1f
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
6 changes: 6 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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;

Expand Down

0 comments on commit 934bc1f

Please sign in to comment.