From 426ab35c6ad6c1004a8e1076d4faa5f245bb6336 Mon Sep 17 00:00:00 2001 From: Justus Adam Date: Wed, 1 May 2024 16:30:28 -0400 Subject: [PATCH] Deal with unused imports --- crates/paralegal-flow/src/utils/mod.rs | 19 +++++++------------ 1 file changed, 7 insertions(+), 12 deletions(-) diff --git a/crates/paralegal-flow/src/utils/mod.rs b/crates/paralegal-flow/src/utils/mod.rs index 5fb0f66bde..8ca479c470 100644 --- a/crates/paralegal-flow/src/utils/mod.rs +++ b/crates/paralegal-flow/src/utils/mod.rs @@ -1,9 +1,6 @@ //! Utility functions, general purpose structs and extension traits extern crate smallvec; -use thiserror::Error; - -use smallvec::SmallVec; use crate::{ desc::Identifier, @@ -25,23 +22,21 @@ use crate::{ ty, }, rustc_span::ErrorGuaranteed, - Either, HashSet, Symbol, TyCtxt, + Either, Symbol, TyCtxt, }; +pub use flowistry_pdg_construction::{is_non_default_trait_method, FnResolution}; +pub use paralegal_spdg::{ShortHash, TinyBitSet}; -pub use flowistry_pdg_construction::is_non_default_trait_method; -pub use flowistry_pdg_construction::FnResolution; - -use std::hash::Hash; -use std::{cmp::Ordering, fs::File}; +use smallvec::SmallVec; +use thiserror::Error; -pub mod resolve; +use std::{cmp::Ordering, hash::Hash}; mod print; +pub mod resolve; pub use print::*; -pub use paralegal_spdg::{ShortHash, TinyBitSet}; - /// This function exists to deal with `#[tracing::instrument]`. In that case, /// sadly, the `Span` value attached to a body directly refers only to the /// `#[tracing::instrument]` macro call. This function instead reconstitutes the