Skip to content

Commit

Permalink
fix up more single_component_path_imports clippy lints
Browse files Browse the repository at this point in the history
  • Loading branch information
Tom Dyas committed May 4, 2020
1 parent e0ce435 commit ebfcad0
Show file tree
Hide file tree
Showing 9 changed files with 0 additions and 20 deletions.
3 changes: 0 additions & 3 deletions src/rust/engine/engine_cffi/build.rs
Original file line number Diff line number Diff line change
Expand Up @@ -25,9 +25,6 @@
// Arc<Mutex> can be more clear than needing to grok Orderings:
#![allow(clippy::mutex_atomic)]

use cbindgen;
use cc;

/*
We use the `gcc` crate to compile the CFFI C sources (`native_engine.c`)
generated by `bootstrap.sh` into a (private) static lib (`libnative_engine_ffi.a`),
Expand Down
5 changes: 0 additions & 5 deletions src/rust/engine/process_executor/src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -25,11 +25,6 @@
// Arc<Mutex> can be more clear than needing to grok Orderings:
#![allow(clippy::mutex_atomic)]

use clap;
use env_logger;

use process_execution;

use clap::{value_t, App, AppSettings, Arg};
use futures::compat::Future01CompatExt;
use hashing::{Digest, Fingerprint};
Expand Down
2 changes: 0 additions & 2 deletions src/rust/engine/src/context.rs
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
// Copyright 2017 Pants project contributors (see CONTRIBUTORS.md).
// Licensed under the Apache License, Version 2.0 (see LICENSE).

use std;
use std::collections::{BTreeMap, HashSet};
use std::convert::{Into, TryInto};
use std::ops::Deref;
Expand Down Expand Up @@ -29,7 +28,6 @@ use process_execution::{
self, speculate::SpeculatingCommandRunner, BoundedCommandRunner, Platform, ProcessMetadata,
};
use rand::seq::SliceRandom;
use reqwest;
use rule_graph::RuleGraph;
use sharded_lmdb::ShardedLmdb;
use store::Store;
Expand Down
1 change: 0 additions & 1 deletion src/rust/engine/src/core.rs
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@ use std::{fmt, hash};
use crate::externs;
use crate::handles::Handle;

use rule_graph;
use smallvec::{smallvec, SmallVec};

pub type FNV = hash::BuildHasherDefault<FnvHasher>;
Expand Down
2 changes: 0 additions & 2 deletions src/rust/engine/src/intrinsics.rs
Original file line number Diff line number Diff line change
Expand Up @@ -7,10 +7,8 @@ use crate::tasks::Intrinsic;
use crate::types::Types;

use boxfuture::Boxable;
use bytes;
use futures::future::{self as future03, TryFutureExt};
use futures01::{future, Future};
use hashing;
use indexmap::IndexMap;

use std::path::PathBuf;
Expand Down
2 changes: 0 additions & 2 deletions src/rust/engine/src/nodes.rs
Original file line number Diff line number Diff line change
Expand Up @@ -28,9 +28,7 @@ use fs::{
self, Dir, DirectoryListing, File, FileContent, GlobExpansionConjunction, GlobMatching, Link,
PathGlobs, PathStat, PreparedPathGlobs, StrictGlobMatching, VFS,
};
use hashing;
use process_execution::{self, MultiPlatformProcess, PlatformConstraint, Process, RelativePath};
use rule_graph;

use graph::{Entry, Node, NodeError, NodeTracer, NodeVisualizer};
use store::{self, StoreFileByDigest};
Expand Down
1 change: 0 additions & 1 deletion src/rust/engine/src/scheduler.rs
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,6 @@ use crate::core::{Failure, Params, TypeId, Value};
use crate::nodes::{NodeKey, Select, Tracer, Visualizer};

use graph::InvalidationResult;
use hashing;
use indexmap::IndexMap;
use log::{debug, info, warn};
use logging::logger::LOGGER;
Expand Down
2 changes: 0 additions & 2 deletions src/rust/engine/src/selectors.rs
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,6 @@ use std::fmt;

use crate::core::TypeId;

use rule_graph;

#[derive(Clone, Copy, Debug, Eq, Hash, PartialEq)]
pub struct Get {
pub product: TypeId,
Expand Down
2 changes: 0 additions & 2 deletions src/rust/engine/src/tasks.rs
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,6 @@ use crate::core::{Function, TypeId};
use crate::intrinsics::Intrinsics;
use crate::selectors::{DependencyKey, Get, Select};

use rule_graph;

#[derive(Eq, Hash, PartialEq, Clone, Debug)]
pub enum Rule {
// Intrinsic rules are implemented in rust.
Expand Down

0 comments on commit ebfcad0

Please sign in to comment.