@@ -3,7 +3,7 @@ use crate::{
33 filter:: MaybeSolData ,
44 replace_source_content,
55 resolver:: parse:: SolData ,
6- ArtifactOutput , CompilerSettings , Graph , Project , ProjectPathsConfig ,
6+ ArtifactOutput , CompilerSettings , Graph , Project , ProjectPathsConfig , Updates ,
77} ;
88use foundry_compilers_artifacts:: {
99 ast:: { visitor:: Visitor , * } ,
@@ -18,7 +18,7 @@ use foundry_compilers_core::{
1818} ;
1919use itertools:: Itertools ;
2020use std:: {
21- collections:: { BTreeSet , HashMap , HashSet } ,
21+ collections:: { HashMap , HashSet } ,
2222 hash:: Hash ,
2323 path:: { Path , PathBuf } ,
2424 sync:: Arc ,
@@ -112,11 +112,6 @@ impl Visitor for ReferencesCollector {
112112 }
113113}
114114
115- pub type Update = ( usize , usize , String ) ;
116- /// Updates to be applied to the sources.
117- /// source_path -> (start, end, new_value)
118- pub type Updates = HashMap < PathBuf , BTreeSet < ( usize , usize , String ) > > ;
119-
120115pub struct FlatteningResult {
121116 /// Updated source in the order they should be written to the output file.
122117 sources : Vec < String > ,
0 commit comments