Skip to content

Address clippy lint for unnecessary imports #2257

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Mar 8, 2020
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 0 additions & 1 deletion src/controllers.rs
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,6 @@ mod prelude {

use indexmap::IndexMap;
use serde::Serialize;
use url;

pub trait UserAuthenticationExt {
fn authenticate(&self, conn: &PgConnection) -> AppResult<super::util::AuthenticatedUser>;
Expand Down
2 changes: 0 additions & 2 deletions src/controllers/krate/owners.rs
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
//! All routes related to managing owners of a crate

use serde_json;

use crate::controllers::prelude::*;
use crate::models::{Crate, Owner, Rights, Team, User};
use crate::views::EncodableOwner;
Expand Down
1 change: 0 additions & 1 deletion src/models/keyword.rs
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,6 @@ impl Keyword {
#[cfg(test)]
mod tests {
use super::*;
use diesel;
use diesel::connection::SimpleConnection;

fn pg_connection() -> PgConnection {
Expand Down
1 change: 0 additions & 1 deletion src/models/token.rs
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,6 @@ impl ApiToken {
mod tests {
use super::*;
use chrono::NaiveDate;
use serde_json;

#[test]
fn api_token_serializes_to_rfc3339() {
Expand Down
1 change: 0 additions & 1 deletion src/views.rs
Original file line number Diff line number Diff line change
Expand Up @@ -249,7 +249,6 @@ pub use self::krate_publish::{EncodableCrateDependency, EncodableCrateUpload};
mod tests {
use super::*;
use chrono::NaiveDate;
use serde_json;

#[test]
fn category_dates_serializes_to_rfc3339() {
Expand Down