Skip to content

Commit 5d02555

Browse files
committed
cleaning
1 parent 322e80a commit 5d02555

File tree

4 files changed

+7
-9
lines changed

4 files changed

+7
-9
lines changed

crates/compilers/src/lib.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ pub mod report;
4242

4343
/// Updates to be applied to the sources.
4444
/// source_path -> (start, end, new_value)
45-
pub type Updates = HashMap<PathBuf, BTreeSet<(usize, usize, String)>>;
45+
pub(crate) type Updates = HashMap<PathBuf, BTreeSet<(usize, usize, String)>>;
4646

4747
/// Utilities for creating, mocking and testing of (temporary) projects
4848
#[cfg(feature = "project-util")]

crates/compilers/src/preprocessor/data.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
use crate::preprocessor::SourceMapLocation;
1+
use super::SourceMapLocation;
22
use foundry_compilers_artifacts::{Source, Sources};
33
use path_slash::PathExt;
44
use solar_parse::interface::{Session, SourceMap};

crates/compilers/src/preprocessor/deps.rs

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,8 @@
1-
use crate::{
2-
preprocessor::{
3-
data::{ContractData, PreprocessorData},
4-
SourceMapLocation,
5-
},
6-
Updates,
1+
use super::{
2+
data::{ContractData, PreprocessorData},
3+
SourceMapLocation,
74
};
5+
use crate::Updates;
86
use itertools::Itertools;
97
use solar_parse::interface::Session;
108
use solar_sema::{

crates/compilers/src/preprocessor/mod.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ mod deps;
3232
/// Represents location of an item in the source map.
3333
/// Used to generate source code updates.
3434
#[derive(Debug)]
35-
pub struct SourceMapLocation {
35+
struct SourceMapLocation {
3636
/// Source map location start.
3737
start: usize,
3838
/// Source map location end.

0 commit comments

Comments
 (0)