Skip to content

Commit 5f1cc50

Browse files
committed
Remove redundant imports
1 parent c7d524c commit 5f1cc50

File tree

3 files changed

+4
-11
lines changed

3 files changed

+4
-11
lines changed

compiler/base/orchestrator/src/coordinator.rs

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -2697,12 +2697,8 @@ fn spawn_io_queue(stdin: ChildStdin, stdout: ChildStdout, token: CancellationTok
26972697
#[cfg(test)]
26982698
mod tests {
26992699
use assertables::*;
2700-
use futures::{
2701-
future::{join, try_join_all},
2702-
Future, FutureExt,
2703-
};
2704-
use once_cell::sync::Lazy;
2705-
use std::{env, sync::Once, time::Duration};
2700+
use futures::future::{join, try_join_all};
2701+
use std::{env, sync::Once};
27062702
use tempdir::TempDir;
27072703
use tokio::sync::{OwnedSemaphorePermit, Semaphore};
27082704

compiler/base/orchestrator/src/worker.rs

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -816,7 +816,6 @@ pub enum ProcessError {
816816

817817
#[cfg(target_os = "macos")]
818818
mod stats {
819-
use libc;
820819
use mach2::mach_time::{mach_timebase_info, mach_timebase_info_data_t};
821820
use snafu::prelude::*;
822821
use std::mem::MaybeUninit;
@@ -1132,7 +1131,6 @@ pub enum Utf8BufReaderError {
11321131
mod test {
11331132
use std::{
11341133
collections::VecDeque,
1135-
io,
11361134
pin::Pin,
11371135
task::{Context, Poll},
11381136
};

ui/src/metrics.rs

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,8 @@
11
use lazy_static::lazy_static;
22
use orchestrator::coordinator::{self, Channel, CompileTarget, CrateType, Edition, Mode};
33
use prometheus::{
4-
self, register_histogram, register_histogram_vec, register_int_counter,
5-
register_int_counter_vec, register_int_gauge, Histogram, HistogramVec, IntCounter,
6-
IntCounterVec, IntGauge,
4+
register_histogram, register_histogram_vec, register_int_counter, register_int_counter_vec,
5+
register_int_gauge, Histogram, HistogramVec, IntCounter, IntCounterVec, IntGauge,
76
};
87
use std::{
98
future::Future,

0 commit comments

Comments
 (0)