Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions crates/artifacts/solc/src/remappings.rs
Original file line number Diff line number Diff line change
Expand Up @@ -723,7 +723,7 @@ fn find_remapping_candidates(

// need to find the actual next window in the event `open` is a lib dir
let window_start = next_nested_window(open, current_dir);
// finally, we need to merge, adjust candidates from the same level and opening window
// finally, we need to merge, adjust candidates from the same level and open window
if is_candidate
|| candidates
.iter()
Expand Down Expand Up @@ -771,8 +771,8 @@ fn dir_distance(root: &Path, current: &Path) -> usize {
}

/// This finds the next window between `root` and `current`
/// If `root` ends with a `lib` component then start join components from `current` until no valid
/// window opener is found
/// If `root` ends with a `lib` component then start joining components from `current` until no
/// valid window opener is found
fn next_nested_window(root: &Path, current: &Path) -> PathBuf {
if !is_lib_dir(root) || root == current {
return root.to_path_buf();
Expand Down
2 changes: 1 addition & 1 deletion crates/compilers/src/artifact_output/configurable.rs
Original file line number Diff line number Diff line change
Expand Up @@ -546,7 +546,7 @@ impl ExtraOutputValues {
}
}

/// Determines what to emit as additional file
/// Determines what to emit as an additional file
#[derive(Clone, Copy, Debug, Default, PartialEq, Eq)]
pub struct ExtraOutputFiles {
pub abi: bool,
Expand Down
2 changes: 1 addition & 1 deletion crates/compilers/src/artifact_output/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -377,7 +377,7 @@ impl<T> Artifacts<T> {
})
}

/// Finds the artifact with matching path and name
/// Finds the artifact with a matching path and name
pub fn find(&self, contract_path: &Path, contract_name: &str) -> Option<&T> {
self.0.iter().filter(|(path, _)| path.as_path() == contract_path).find_map(
|(_file, contracts)| {
Expand Down